-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
VSCode cannot resolve Nuxt Auto Imports in a new/renamed file #4167
Labels
bug
Something isn't working
Comments
kingychiu
changed the title
VSCode cannot resolve Nuxt Auto Imports in a new/renamed file.
VSCode cannot resolve Nuxt Auto Imports in a new/renamed file in a nested/mono repo
Mar 28, 2024
kingychiu
changed the title
VSCode cannot resolve Nuxt Auto Imports in a new/renamed file in a nested/mono repo
VSCode cannot resolve Nuxt Auto Imports in a new/renamed file
Mar 28, 2024
You can execute the "Reload Window" command. No need to restart VSCode. I have the same problem in a conventional Vue3 project, without nuxt, in 2.0.7. |
johnsoncodehk
added a commit
that referenced
this issue
Mar 28, 2024
johnsoncodehk
added a commit
to volarjs/volar.js
that referenced
this issue
Mar 28, 2024
This problem should be fixed in the master branch, here are the relevant commits: We need to wait for VSCode 1.88 to be released before we can update the extension. You can use 1.8.27 for now. |
The restart command was re-add by #4174. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In my current vscode setup, Nuxt and vue typescript is working fine. But when I rename or create a file, the type and resolution wont work on that new file only. Any ideas?
Project/Folder Setup, it is under a workspace:
I found that in the existing file, tsconfig is found:
But in a new file, no tsconfig is found:
For example, let's say I have a composable named useABC
VSCode can auto-suggest this when I type useAB only on an existing file.
AutoImport is working on an existing file:
After renaming, the resolution becomes different:
After restarting the entire VSCode, it will work again. Since now the vue restart command is removed (#4164), only restarting VSCode can resolve the issue.
The text was updated successfully, but these errors were encountered: