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
Cannot find module './App.vue' or its corresponding type declarations.ts(2307) #48651
Comments
I think this is a VSCode bug, not a TypeScript bug. I saw this problem for the first time yesterday on a working project. I can confirm that this bug appears on a TS/Vue project created with |
You should install TypeScript Vue Plugin and Vue Language Features. |
I find this issues vuejs/language-tools#1173 οΌthis is problem of Voler. https://www.typescriptlang.org/zh/tsconfig#include
I think this means typescript support others file extension. |
It looks like this is a question rather than a bug report. This issue tracker is for tracking bugs and active work on TypeScript itself, rather than a general forum for programmers using TypeScript to get help or ask questions. You can ask questions on sites like Stack Overflow. We are not able to provide one-on-one support on the issue tracker. Please read the issue template carefully - it has important information on what kinds of reports can be acted on here, as well as links to useful TypeScript resources. Thanks! |
Thanks everyone. let's wating Volar fix it. |
Th. It works for me! |
create a file under the root of project dir and name it such like 'shims.d.ts' could solve content: |
Still have same proplem with Volar |
I'm still having this issue using Sublime and the LSP-Volar package https://github.com/sublimelsp/LSP-volar |
Please note that in the description of the TypeScript Vue Plugin extension, it says:
So if you're using VS Code + Volar, you should enable the Takeover Mode instead of installing the extension. It is also mentioned in the Vue documentation: https://vuejs.org/guide/typescript/overview.html#volar-takeover-mode (BTW, the identifier changed from |
Bug Report
Cannot find module './App.vue' or its corresponding type declarations.ts(2307)
π Search Terms
π Version & Regression Information
Visual Studio Code@1.66.1
typescript@4.6.3
β― Playground Link
π» Code
tsconfig.json:
π Actual behavior
π Expected behavior
The text was updated successfully, but these errors were encountered: