-
-
Notifications
You must be signed in to change notification settings - Fork 433
Newly created Vue app with TS doesn't recognize .vue files #5281
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
Comments
Can v3.0.0 (#5261) solve this problem? |
I update a extension to |
I can't reprocude it, but I'm using pnpm and Windows. Not sure if this is a platform specific issue. |
Check and try to change your Hybrid Mode config. |
This may be caused by the installation of an incompatible extension, please try the following methods and see if it can resolve the problem:
|
Same problem, not only newly repo, all vue repositories in computer has been affected, solved by:
|
I can also confirm that for some reason disabling -> reloading vscode -> enabling fixed this issue for me. Very strange. Seems maybe like there's some kind of cached state that only get cleared and correctly regenerated after full disable and re-enable. |
Vue - Official extension or vue-tsc version
2.2.8
VSCode version
1.98.2
Vue version
3.5.13
TypeScript version
~5.8.0
System Info
package.json dependencies
Steps to reproduce
after this step, open VSCode with Vue Extension, go to Main.ts
import App from './App.vue'; has a red squiggle under './App.vue'
error is 'Cannot find module './App.vue' or its corresponding type declarations.ts(2307)'
What is expected?
.vue files are recognized by TS
What is actually happening?
.vue files are not recognized by TS
Link to minimal reproduction
No response
Any additional comments?
I'm literally new on Javascript/Typescript, Vue
I came here from Django, Python
I'm just curious there is an error even initial start of Official Document's "Quick Start"
https://vuejs.org/guide/quick-start.html
I watched some simillar issue report in #4118, #4883
Is this situation intended and is there something I need to learn more or set up?
The text was updated successfully, but these errors were encountered: