error: Unexpected console statement (no-console) [How to Solve]

Error Messages:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
error: Unexpected console statement (no-console)
error: Unexpected console statement (no-console)
error: Unexpected console statement (no-console)

 

 

Solution:

Modify “rules”:{} in eslintConfig:{} in package.json, add a line of code: “no-console”:” off”

NPM install after saving

Read More: