We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Vetur: Restart VLS
Tring to use vetur in a monorepo.
Vetur can not resolve module when tsconfig.json not placed in project root folder
Vetur seems think BaseURI in tsconfig.json is relative to project root, but actually it is relative to same folder as tsconfig.json
cd project-1
pnpm i
npm i
project-1/src/App.vue
set project root to tsconfig.json
--- a/vetur.config.js +++ b/vetur.config.js @@ -2,8 +2,8 @@ module.exports = { projects: [ { - root: "./project-1", - tsconfig: "./src/tsconfig.json", + root: "./project-1/src", + package: '../package.json' }, ], };
The text was updated successfully, but these errors were encountered:
b9e4a62
No branches or pull requests
Vetur: Restart VLS
Info
Problem
Tring to use vetur in a monorepo.
Vetur can not resolve module when tsconfig.json not placed in project root folder
Vetur seems think BaseURI in tsconfig.json is relative to project root, but actually it is relative to same folder as tsconfig.json
Reproducible Case
cd project-1
pnpm i
ornpm i
project-1/src/App.vue
Workaround
set project root to tsconfig.json
The text was updated successfully, but these errors were encountered: