language-tools: Vue+TS crashes when vue.volar is upgraded to 2.0
Two days ago vue.volar was upgraded to v2.0, and Vue+TS kept reporting errors. I thought maybe it was being repaired, but now it is v2.0.3, and the problem still exists.
"All destructured elements are unused."
"Block-scoped variable '__VLS_8' used before its declaration."
"'__VLS_8' is declared here."
"Variable '__VLS_8' is used before being assigned."
......
This is a brand new vue+ts project created through vite
I have used many methods: 1.Remove TypeScript Vue Plugin (Volar) 2.Install Vue - Official 3.Enable TypeScript and JavaScript Language Features in Plugins > Search - @builtin typescript
Yes, I ended up having to delete vs code and even clear the plugins. But it still has no effect。
This problem occurs on my MAC computer: mac: Apple M2 Pro macOS: 14.2.1 (23C71) node: 18.19.0
But when I open VS Code on a window computer and upgrade vue.volar to 2.0.3, there are no problems.
About this issue
- Original URL
- State: closed
- Created 4 months ago
- Reactions: 22
- Comments: 18 (1 by maintainers)
VSCode temporary fix
You might want to rollback to the previous version of Vue - Official. To do so, open
Extensions
tab -> click on the little cogwheel icon underVue - Official
extension -> selectInstall another version
and choose the one that works for you (1.8.27 for me)Im having the same issue and the typescript autocomplete stopped working.
**I solved by downgrade the
vue-official
version to 1.8.27 **I’m having this problem too, on my MacBook, I can’t install the other versions directly, so I can also do it offline, and then disable automatic updates! vscode offline install
回退到
1.8.27
版本即可