-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
valid-template-root root requires exactly one element;vue3使用多根节点 #1976
Comments
不影响正常使用,但是报错 |
https://vuejs.github.io/vetur/linting-error.html#linting-for-template
|
Sorry for trolling this, but would it not be better if the plugin can discover the .eslintrc file? |
Tracked in #2015. Now you can turn it off with |
yeah,I had solved this error. just create dir named .vscode in the rootDir and then create file named settings.json in .vscode |
but now, the lasted vetur had no problem as I see. |
the latest I found the reason of my problem. I installed other plugin work for Wechat miniprogram, and it will check after turn off thems the Thanks!😁 |
Disable the whole template validation for the sake of fixing one warning? Is that a suggestion? |
The Vue 3 rules are now automatically used when Vue3. And If you use eslint in project, you can disable it. |
tks its solved for me |
Disabling the template validation defeats the whole purpose of having Vetur. I resolved the issue by moving the project to the root of the workspace. So if you're project is in a subfolder (e.g workspace > subfolder > project), Vetur looks for the package.json file in the subfolder and not in your project folder, hence the reason why it doesn't work properly. |
If you use subfolder and monorepo, you can use |
This worked too, thanks! |
When my project is in a subfolder , node_modules modules with package.json has vetur tags or attributes config also not work |
Please use |
Thanks a lot, It works |
Info
Problem
When I use vue-next,I got an error
What should I do to not see it
在模板使用多根节点,报错如下
[vue/valid-template-root]
The template root requires exactly one element.
The text was updated successfully, but these errors were encountered: