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

Typescript and vue intellisense not working #3936

Closed
cristiano-matchday opened this issue Mar 2, 2024 · 19 comments
Closed

Typescript and vue intellisense not working #3936

cristiano-matchday opened this issue Mar 2, 2024 · 19 comments

Comments

@cristiano-matchday
Copy link

Hi - Since I started using this instead of Volar, my typescript and vue intellisense stopped working.

Also, all my vue files result in error, when they are squeaky clean.

image

Any suggestion? I use Vite boilerplate.

@yingside
Copy link

yingside commented Mar 2, 2024

Yes, me too, upgraded Vue - Official v2.0.2, typescript doesn’t work anymore

@wuhaohuang
Copy link

+1
image

@wuhaohuang
Copy link

Hi - Since I started using this instead of Volar, my typescript and vue intellisense stopped working.

Also, all my vue files result in error, when they are squeaky clean.

image Any suggestion? I use Vite boilerplate.

My current solution is to downgrade Vue - Official back to 1.8.27, start Volar, and disable the automatic upgrade of the vscode plug-in, and it will work.

@cristiano-matchday
Copy link
Author

That worked for me.

@hungify2022
Copy link

hungify2022 commented Mar 2, 2024

I don't have any issues like it.
Can you try running 'Developer: reloading window' in VScode and read the notification box?

Note:

  • Vue.vscode-typescript-vue-plugin no need to install
  • Enable TypeScript and JavaScript Language Features

CleanShot 2024-03-02 at 19 31 02@2x

@larserikfinholt
Copy link

Reloading windows causes it to ask for volar again. Is the Volar needed in v2.0.2 as shown in the image?

image

@cristiano-matchday
Copy link
Author

cristiano-matchday commented Mar 2, 2024

I don't have any issues like it. Can you try running 'Developer: reloading window' in VScode and read the notification box?

Note:

  • Vue.vscode-typescript-vue-plugin no need to install
  • Enable TypeScript and JavaScript Language Features

CleanShot 2024-03-02 at 19 31 02@2x

I reloaded my window a bajillion times and removed the volar stuff. I don't have that plugin you are referring to either.
About Enable TypeScript and JavaScript Language Features - they are.
Still broken to me

@wuhaohuang
Copy link

I don't have any issues like it. Can you try running 'Developer: reloading window' in VScode and read the notification box?

Note:

  • Vue.vscode-typescript-vue-plugin no need to install
  • Enable TypeScript and JavaScript Language Features

CleanShot 2024-03-02 at 19 31 02@2x

I re-upgraded to the latest 2.0.2 and disabled Vue.vscode-typescript-vue-plugin in the workspace. I also tried restarting typescript server and vscode, but it still doesn't work, and this message pops up.

image

Then I disabled the styled-component plug-in, and it reported an error and crashed.

image

@rmacuna
Copy link

rmacuna commented Mar 2, 2024

Same here. Typescript no longer works and my vscode can't find any definition types for my components

@HamasakiBrain
Copy link

  1. Remove TypeScript Vue Plugin (Volar)
  2. Install Vue - Official
  3. Enable TypeScript and JavaScript Language Features in Plugins > Search - @builtin typescript

Its resolved for me.

@Tekilian
Copy link

Tekilian commented Mar 2, 2024

I tried many ways mentioned above but it dosn't work
however , disabling styled component extension in my workplace has resolved my problem

@pzgz
Copy link

pzgz commented Mar 2, 2024

same here, after upgrading to 2.0.2, even tried to uninstall and reinstall Vue - Official plugin, still got TS service crashed 5 times issue:

CleanShot 2024-03-03 at 02 24 53@2x

@pzgz
Copy link

pzgz commented Mar 2, 2024

Well, code - insiders version is working for now, might be a workaround before we got fix

@ElYaiko
Copy link

ElYaiko commented Mar 2, 2024

same here, after upgrading to 2.0.2, even tried to uninstall and reinstall Vue - Official plugin, still got TS service crashed 5 times issue:

CleanShot 2024-03-03 at 02 24 53@2x

I'm having the same issue, it makes the JS/TS Language server crash from version 2>

I have VSCode 1.87.

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Mar 3, 2024

See #3942

@WayneDT
Copy link

WayneDT commented Mar 5, 2024

#3942 was of no help to me
I don't use the "Svelte extension"

I am still facing extremely slow intellisence with my vue typescript project. what is the recommended solution?
Do I downgrade to the previous version and install the deprecated volar extension?

@RedskyThirty
Copy link

Same problem for me. Since I ununstalled Volar and use Vue Official, I lost the autocomplete on components, interfaces, etc.
VSCode was a very good IDE for Vue but now, it's very debatable. This is the problem with software that requires multiple plugins to work the way you want...
I really hope that this will be fixed soon.

@ebisbe
Copy link

ebisbe commented May 2, 2024

Not sure if it's related but I got the message Cannot find moduel X or it's types declarations. other than that everything works. It's annoying because I miss most of the TS features with all my personal files.

@matthew-dean
Copy link

In my case, after turning TS / Vue extensions on / off, it said that hybrid mode was disabled because of a conflicting extension (Vue Inline Template). This was what was preventing the Vue extension from working properly. So, check to see that you have no other Vue extensions running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests