Solution: add the following configuration to the package. JSON file
"rules": {
"no-console": "off",
"no-restricted-syntax": ["error", {
"selector": "CallExpression[callee.object.name='console'][callee.property.name!=/^(log|warn|error|info|trace)$/]",
"message": "Unexpected property on console object was called"
}]
},
Read More:
- [Solved] Console error: syntax error: illegal return statement
- [Solved] MinIO Start Error: “WARNING: Console endpoint is listening on a dynamic port…”
- [Solved] NoClassDefFoundError: jline/console/completer/ArgumentCompleter$ArgumentDelimiter
- [Solved] ECharts Console Error: `resize` should not be called during main process
- [Solved] `handle_argument_error‘: ERROR: “rails console“ was called with arguments [“production“]
- [Solved] error TS2584: Cannot find name ‘console’. Do you need to change your target library? Try changing the ‘lib’ compiler option to include ‘dom’.
- [Solved] Use the truss console to connect to the public blockchain network error: mnemonic invalid or undefined
- After SpringBoot starts, exit the console directly and display Process finished with exit code 1
- [Solved] STS Console Error: error unknown mavem Maven Configuration Problem
- [Solved] Rocketmq console connect to x.x.x.x:10911 failed Error
- Hive Statement Error During Execution: Error while processing statement: FAILED: Execution Error, return code 2 from o
- Refresh 404 after packaging Vue project, uncaught syntax error: unexpected token <
- vue VM682:1 Uncaught SyntaxError: Unexpected token u in JSON at position 0
- log4j Error: Please initialize the log4j system properly [How to Solve]
- Webpack Pack and compress ES6 files with errors: ERROR in js/xxxxxx.js from UglifyJs Unexpected token punc ()
- [Solved] Junit.test use error: log4j:WARN No appenders could be found for logger
- [Solved] Spark Error: ERROR StatusLogger No log4j2 configuration file found
- [Solved] kafka Startup Error: ERROR Shutdown broker because all log dirs in /…/kafka/logs have failed (kafka.log.LogManager)
- Uncaught SyntaxError: Cannot use import statement outside a module
- [How to Solve] Unexpected space before function parentheses Error