The plug-in supported by vue3 should be volar. There was an old vue2 project plug-in vetur before, so an error will be reported
solution: create a new .vscode
in the project and create a new file settings.json
, which reads as follows:
{
"vetur.validation.template": false,
"vetur.validation.script": false,
"vetur.validation.style": false,
}
Finally, restart vscode to solve the problem
Read More:
- Vue3 Error: [vue/no-multiple-template-root] The template root requires exactly one element
- [Solved] VS Code Error: Vetur can‘t find ‘tsconfig.json‘ or ‘jsconfig.json‘
- Vscode save Vue format eslint check error [How to Solve]
- vue3 import Error: has no default export [How to Solve]
- [Solved] VUE D:\project\vueProject\vue-02\src\components\hello.vue 5:5 error Parsing error: x-invalid-end-tag
- [Solved] Install The Latest Version of Jest Error: TypeError: Cannot read property ‘instrument‘ of undefined
- Vue modifies the value passed by props error: Avoid mutating a prop directly since the value will be overwritten whenever the par
- [Solved] Error: #error More than 1 blank line not allowed no-multiple-empty-lines
- [Solved] SyntaxError: Cannot use import statement outside a module
- [Solved] Cannot read properties of undefined (reading ‘propsData‘)“
- [Vue error] the solution to the template root requires exactly one element error reporting
- Vue init webpack Error: unable to verify the first certificate
- How to Solve Vscode save Vue file eslint error
- How to Solve Vue editor bridge error
- [Solved] Syntax Error: TypeError: Cannot read property ‘parseComponent‘ of undefined
- [Solution] VUE.js Load a local image with parameters in the script
- npm ERR code ELIFECYCLE [How to Solve]
- [Solved] Prittier format code error: JSON Error in…
- Vue: How to Solve Eslint error
- Error: Cannot find module ‘./application‘ [How to Solve]