It's like trying to fix a small problem by causing a bigger issue! Disabling templateInterpolationService
may diminish the usefulness of Vetur significantly.
I experienced issues with Vetur v0.35.0 after updating typescript > 4.4
To check the version(s) of typescript being used in your project, run npm ls typescript
in the project root directory.
If you are using typescript
4.4.4
or lower, follow these steps:
Restart Vue Language Server (in VSCode):
View ->
Command Palette.. ->
Vetur:Restart VLS (Vue Language Server)
If you are using typescript
4.5
or higher, you may encounter an error. Solutions are still being researched for this scenario.
Alternatively, if you want to enforce the use of an older version of typescript system-wide, make sure you have npm version 8.3+ and utilize the new "overrides" section in package.json:
...
"overrides": {
"typescript": "4.4.4"
},
...