Solution: modify “rules”: {} in eslintconfig: {} in package.json and add a line of code: “no console”: “off”
NPM install after saving
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"rules": {
"no-console": "off"
},
"parserOptions": {
"parser": "babel-eslint"
}
},
or:
window.console.log(“…”)
Similar Posts:
- Expected indentation of 8 spaces but found [How to Solve]
- How to Solve Eslint syntax error in Vue project
- [Solved] Vue3.X version error: Parsing error: Parsing error: Unexpected token
- Error reporting of console.log in eslint
- Windows / Android / IOS / Linux platform h265 streaming media player easyplayer.js deployment error
- [Solved] Vue Esline Error: Parsing error: Unexpected token import
- [Solved] ESLint Error: Failed to load config “standard” to extend from
- No undef check error in eslint
- [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
- Module build failed (from ./node_modules/eslint-loader/index.js):Error: Failed to load plugin html: