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."
......
iShot_2024-03-04_00 07 19

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)

Most upvoted comments

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 under Vue - Official extension -> select Install another version and choose the one that works for you (1.8.27 for me)

image

Im having the same issue and the typescript autocomplete stopped working. image

**I solved by downgrade the vue-official version to 1.8.27 **

image

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

image

image

回退到1.8.27版本即可 1 2