Solution:
Modify package Eslintconfig in JSON: “rules”: {} in {}, add a line of code: “no console”: “off”
NPM install after saving
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'@vue/standard'
],
parserOptions: {
parser: 'babel-eslint'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ?'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ?'warn' : 'off',
"no-console":"off"
}
}
Or directly use:
window.console.log(“…”) (I haven’t tried)
Read More:
- error: Unexpected console statement (no-console) [How to Solve]
- vue.config.js build Package UglifyJsPlugin to clear console and print console.log Error: `warnings` is not a supported option
- Solve the problem of repeatedly clicking the same route console in Vue to report an error
- [Solved] Vue console error: navigationduplicated: avoided redundant navigation to current location
- The page console error [Vue warn]: Invalid prop: custom validator check failed for prop “status“
- [Solved] Console Error: Error: Request failed with status code 405
- How to Solve JS error: Unexpected end of JSON input,Unexpected token u in JSON at position 0
- [Solved] SyntaxError: Cannot use import statement outside a module
- [Solved] SyntaxError: Cannot use import statement outside a module
- [Solved] JS Error: Uncaught SyntaxError: Illegal return statement
- [Solved] Uncaught SyntaxError: Cannot use import statement outside a module
- The body of a for-in should be wrapped in an if statement to filter unwanted properties from the pro
- [Solved] component import error is declared in the statement of components
- [Solved] SyntaxError: Cannot use import statement outside a module
- [Solved] ajax Error: Uncaught SyntaxError: Unexpected end of JSON input
- js: SyntaxError: Cannot use import statement outside a module
- Error when Python executes JavaScript statement
- ArcGIS API for JavaScript version 4. X updated and the project startup error: Module parse failed: Unexpected token(… …
- [Solved] vue Project Error: react lazy eslint error Parsing error: Unexpected token import
- [Solved] Uncaught SyntaxError: Unexpected token ‘<‘