解决方法
在package.json中添加
"vue/setup-compiler-macros": true
记得在上面的 "node": true 后面加一个逗号
"eslintConfig": {
"root": true,
"env": {
"node": true,
"vue/setup-compiler-macros": true
},
"extends": [
"plugin:vue/vue3-essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "@babel/eslint-parser"
},
"rules": {
"vue/no-unused-components": "off"
}
},