How to Solveb Vue3 defineProps Error

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: