vue3.0 supports <template/></template> tag to delegate more than one root element
Building the project with the latest Vite, the code in the default app.vue is as follows:
The code can run normally, but the vscode gives an error prompt:
[vue/no-multiple-template-root]
The template root requires exactly one element. eslint-plugin-vue
The reason is that the vetur plug-in has not been updated
The temporary solution is
Settings -> Search: eslint plugin Vue -> Uncheck the first (Vetur › Validation: Template )
Read More:
- [vue/no-multiple-template-root] The template root requires exactly one element.
- [Vue error] the solution to the template root requires exactly one element error reporting
- Vue Import element-plus Error: Failed to resolve import “element-pluslibtheme-chalkindex.css“ from “src
- Vue warn]: vue3 element Component emit Pass Event Error
- Vue3 + vite install element-plus error [How to Solve]
- [Solved] Vue Use gzip Package Error: Rule can only have one resource source
- Front end initialization Vue element admin error [How to Solve]
- [Solved] Vue element UI form verification error: cannot read property ‘validate’ of undefined
- [Solved] Vue3 Import element UI error: Uncaught TypeError: Cannot read properties of underfined…
- How to Solve Vue add element Install Error
- [Solved] Vue Error: template or render function not defined
- Vue wran name Error: Unkown custom element [How to Solve]
- [Solved] Vue Element Date plug-in reports an error in form validation
- [Solved] ERROR in ./node_modules/element-ui/lib/theme-chalk/fonts/element-icons.ttf
- Vue element component V-for error [How to Modify)
- [Solved] Element form method resetfields() error: vue.runtime.esm.js?2b0e:1888 TypeError: Cannot read properties of undefined (reading ‘indexOf’)
- The solution to the problem that the custom styles of UI components such as element-ui in the vue project do not take effect
- Vue3.0 error: Failed to resolve component el-form-item (el element to be unable to be displayed)
- [Solved] Vue Project Error: Error: Cannot find module ‘webpack‘ Require stack以及Error: Rule can only have one resource so
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist