You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Volar with the TypeScript Vue Plugin, seems to be causing the following error repeatedly on all *.vue files:
Error
[{
"resource": "/Users/segevfiner/junk/volar-nested-project-bug/tsconfig.json",
"owner": "typescript",
"severity": 8,
"message": "File '/Users/segevfiner/junk/volar-nested-project-bug/web/src/App.vue' is not under 'rootDir' '/Users/segevfiner/junk/volar-nested-project-bug/src'. 'rootDir' is expected to contain all source files.\n The file is in the program because:\n Root file specified for compilation",
"source": "ts",
"startLineNumber": 1,
"startColumn": 1,
"endLineNumber": 1,
"endColumn": 2
}]
In a project that has a root project with a tsconfig.json and a subproject with a Vite app created with npm create vue@3.
Volar with the TypeScript Vue Plugin, seems to be causing the following error repeatedly on all
*.vue
files:Error
In a project that has a root project with a
tsconfig.json
and a subproject with a Vite app created withnpm create vue@3
.Steps to reproduce:
git clone https://github.com/segevfiner/volar-nested-project-bug && code volar-nested-project-bug
.src/hello.ts
.It seems like Volar is trying to forcibly apply the root
tsconfig.json
in the project to the*.vue
files instead of using the one in the subdirectory.Versions:
VS Code 1.67.0
macOS 12.3.1
Volar & TypeScript Vue Plugin v0.34.11
TypeScript 4.6.4
Node 16.15.0
The text was updated successfully, but these errors were encountered: