Vue3 error in defineprops
When using vue3 for the first time, it is found that using defineprops will report an error
Solution
1. Update eslint
npm update eslint
npm update eslint-plugin-vue
2. Modify package.json
"eslintConfig": {
"root": true,
"env": {
"node": true,
"vue/setup-compiler-macros": true
},
Read More:
- [Solved] Vue 3 Script Setup ESLint Error: ‘defineProps‘ is not defined
- How to Solve VUE Error: Mixed spaces and tabs
- [Solved] error: Unexpected console statement (no-console)
- [Solved] Syntax Error: Error: No ESLint configuration found & TypeError: eslint.CLIEngine is not a constructor
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- VUE Error: Mixed spaces and tabs [How to Solve]
- Vue Install less Error: While resolving: [email protected]
- Vue3 Error: [vue/no-multiple-template-root] The template root requires exactly one element
- How to Solve Vscode save Vue file eslint error
- [Solved] Vue2.0 Error: Syntax Error: TypeError: eslint.CLIEngine is not a constructor
- [Solved] Vue eslint Error: Component name “*****“ should always be multi-word
- Vue Error: component has been registered but not used [Two Methods to Solve]
- [Solved] vue Project Error: react lazy eslint error Parsing error: Unexpected token import
- [Solved] Failed to load plugin ‘vue‘ declared in ‘.eslintrc.js‘: createRequire is not a function
- [Solved] Vue Project Error: Arrow function should not return assignment
- Vscode save Vue format eslint check error [How to Solve]
- [Solved] Vue Error: error ‘xxx‘ is defined but never used no-unused-vars
- [Solved] Errors: 1 http://eslint.org/docs/rules/quotes…elementUI Import Error
- [Solved] Error: Transform failed with 1 error: error: Invalid option in transform() call: “jsx“
- [Solved] Failed to load config “prettier“ to extend from.?