-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
Throws error about multiple root elements in template. (Vue 3 + TypeScript) #2299
Comments
I cannot reproduce from https://github.com/dannysmc95/vetur-issue1 If you don't want this you can turn off the default linting and configure your own: https://vuejs.github.io/vetur/linting-error.html |
Sure, I have checked the issue, it seems to occur when multiple folders are included in the same workspace...? |
There's no multiroot support yet: #424 |
I am experiencing the same problem when having multiple folders in a workspace within VS Code |
Turning off Vetur linting resolved the problem in my case |
If you have this problem, your package json isn't in opened project root.
|
If you have a simple client+server workspace, where client is your Vue app, make sure it's the first project in the workspace. Vetur seems to pick it up. Naturally, any other Vue projects in the same workspace won't be picked up yet. |
Info
Problem
When adding multiple root template elements within a SFC (
.vue
file), Vetur throws an error, even though Vue 3 now supports it, see screenshot below:Reproducible Case
NOTE: Repo is used for another issue in this project as well.
npm install
,./src/App.vue
file in VSCode and see the issue,The text was updated successfully, but these errors were encountered: