Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue+TS crashes when vue.volar is upgraded to 2.0 #3953

Closed
yingside opened this issue Mar 3, 2024 · 18 comments
Closed

Vue+TS crashes when vue.volar is upgraded to 2.0 #3953

yingside opened this issue Mar 3, 2024 · 18 comments
Labels
duplicate This issue or pull request already exists

Comments

@yingside
Copy link

yingside commented Mar 3, 2024

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.

@flmthink
Copy link

flmthink commented Mar 3, 2024

I have the same problem on my Windows computer。
image

@MostafaElGamal
Copy link

MostafaElGamal commented Mar 3, 2024

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

@rayadaschn
Copy link

rayadaschn commented Mar 4, 2024

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

@lin52025iq

This comment was marked as spam.

1 similar comment
@ifzm

This comment was marked as spam.

@ifzm
Copy link

ifzm commented Mar 4, 2024

I need to return the plugin to install these two versions to avoid errors
Vue - Official v1.8.27
TypeScript Vue Plugin (Volar) v1.8.27

@hanosong

This comment was marked as spam.

@huanlirui

This comment was marked as spam.

@OPBR

This comment was marked as spam.

@ddzy
Copy link

ddzy commented Mar 4, 2024

回退到1.8.27版本即可
1
2

@komorebi920

This comment was marked as spam.

1 similar comment
@JulianRomana

This comment was marked as spam.

@johnsoncodehk
Copy link
Member

Duplicate of #3942

@johnsoncodehk johnsoncodehk marked this as a duplicate of #3942 Mar 4, 2024
@johnsoncodehk johnsoncodehk added the duplicate This issue or pull request already exists label Mar 4, 2024
@pawelmiklas

This comment was marked as spam.

@Bowske
Copy link

Bowske commented Mar 4, 2024

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

@daniilgri
Copy link

Why the issue is closed if it's still working laggy on the newest version?

@harryyaprakov
Copy link

@daniilgri They closed it, because it is a duplicate of another issue and is now tracked there.

@emartinez-dev

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests