Skip to content

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

To fix the ‘unexpected console statement’ error in Node.js, just create a .eslintrc.js in the directory of the project and put the following configuration in it.

Advertisements
module.exports = {
    rules: {
        'no-console': 'off',
    },
};
See also  Blocked by CORS policy error - How to fix?

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.