报错为:
ESLint: Require statement not part of import statement.(@typescript-eslint/no-var-requires)
解决方法:在package.json中加入
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/vue3-essential",
"@vue/standard",
"@vue/typescript/recommended"
],
"parserOptions": {
"ecmaVersion": 2020
},
"rules": {
"@typescript-eslint/no-var-requires": 0
}
},