Skip to content

How to fix ‘unexpected console statement’ error in Vue.js?

To fix the ‘unexpected console statement’ error in Vue.js, open package.json and under section eslintConfig put no-console under rules and restart dev server (npm run serve or yarn serve). This is a same way as we have fixed in Node.js

Advertisements
...
"eslintConfig": {
  ...
  "rules": {
    "no-console": "off"
  },
}
...
See also  How to fix 'unexpected console statement' error in Node.js?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.