vuejs / language-tools

⚡ High-performance Vue language tooling based-on Volar.js
https://marketplace.visualstudio.com/items?itemName=Vue.volar
MIT License
5.71k stars 384 forks source link

Nuxt3 auto import and alias import failed with v2.0.0 #3929

Open 21stc-09 opened 5 months ago

21stc-09 commented 5 months ago

error info plugin: ts-plugin (2304、2307)

Vue - Official:v2.0.0

System: 版本 Windows 10 专业版 版本号 22H2 安装日期 ‎2023/‎11/‎3 操作系统内部版本 19045.4046 体验 Windows Feature Experience Pack 1000.19053.1000.0

vscode verision: 版本: 1.87.0 (user setup) 提交: 019f4d1419fbc8219a181fab7892ebccf7ee29a2 日期: 2024-02-27T23:41:44.469Z Electron: 27.3.2 ElectronBuildId: 26836302 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Windows_NT x64 10.0.19045

7093610288246

21stc-09 commented 5 months ago

The project runs normally but vscode displays abnormally

1 2 3

21stc-09 commented 5 months ago

After some time everything worked fine and I didn't do anything

And after i open some files, it happened again

21stc-09 commented 5 months ago

i found the same error on the other project.

4

takahashi-sdi commented 5 months ago

I upgraded to version 2.0.0 of the Vue extension today, and the same issue occurred. When I use alias and auto-imports, VSCode displays errors, though the build process completes successfully. Somotimes this error disappears, but occurs again. I have removed TypeScript Vue Plugin and disabled takeover mode.

image

AQian-Cup commented 5 months ago

I'm having the same problem.

davidmatter commented 1 month ago

Is this still an issue with the latest version and Hybrid Mode - Auto?

takahashi-sdi commented 1 month ago

@davidmatter Yes, this issue still persists in the latest version.

KermanX commented 2 weeks ago

Could anyone provide a minimal reproduction?