For example, the following error: it has nothing to do with the code
error in ./src/App.vue Module Error (from ./node_modules/eslint-loader/index.js): D:\workspace\test\element-plus-test\src\App.vue 1:1 error Parsing error: Unexpected token < ✖ 1 problem (1 error, 0 warnings)
Solution:
1. Install the eslint plugin Vue plug-in
npm install eslint-plugin-vue -D
2. Add the following configuration in the. Eslint.js configuration file:
module.exports = { root: true, parserOptions: { "ecmaVersion": 7, sourceType: 'module' }, "parser": "vue-eslint-parser", // Add this line rules: { "@typescript-eslint/explicit-module-boundary-types":"off" } }
Similar Posts:
- Expected indentation of 8 spaces but found [How to Solve]
- How to Solve error: Unexpected console statement (no-console)
- [Solved] Vue Esline Error: Parsing error: Unexpected token import
- [Solved] ESLint Error: Failed to load config “standard” to extend from
- [Solved] Vue3+ts+eslint Error: warning Unexpected any. Specify a different type, warning Delete `·` , Missing return type on function, Require statement not part of import statement
- Windows / Android / IOS / Linux platform h265 streaming media player easyplayer.js deployment error
- How to Solve Eslint syntax error in Vue project
- Module build failed (from ./node_modules/eslint-loader/index.js):Error: Failed to load plugin html:
- No undef check error in eslint
- [Solved] ESLint Error: Line 10 exceeds the maximum line length of 100