Open Laurelin opened 1 month ago
The relevant tsconfig files:
tsconfig.json
{
"files": [],
"references": [
{
"path": "./tsconfig.node.json"
},
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.vitest.json"
}
]
}
and tsconfig.app.json
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
"exclude": ["src/**/__tests__/*"],
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}
The latest version of extension is 2.1.6
Vue - Official extension or vue-tsc version
1.8.27
VSCode version
1.93.1
Vue version
^3.4.29
TypeScript version
~5.4.0
System Info
package.json dependencies
No response
Steps to reproduce
run
npm create vue@latest
make sure to choose Typescriptgo 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?
There's a recent closed issue on this
https://github.com/vuejs/language-tools/issues/4118