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
- How to Solve Vscode save Vue file eslint error
- Vue2.0: How to Use vue3 api to encapsulate Axios
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- How to Solve Vue project Startup Error (Node Upgrade issue)
- How to Solve Vue3 Import lodash error
- How to Solve Vue add element Install Error
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist
- How to Solve Vue cli configuration SCSS global variable error
- How to Solve Vue3 using deep syntax Error
- How to Solve Vue loading 3D model Error
- How to Solve VUE Error: Avoid mutating a prop directly since the value will be overwritten …
- Vue: How to Solve Eslint error
- How to Solve Vue editor bridge error
- How to Solve Vue3 jweixin-module Error
- Vue element component V-for error [How to Modify)
- How to Solve @Vue/cli3.X Using less Error
- VUE: How to Solve NPM Always Install Error
- Vue: How to Solve error avoided redundant navigation to current location: “/xxx”