Production build fails due to eslint `console.log()` errors, possible issue with NODE_ENV

Hey @tmrd,

I’ve had similar issues with the netlify build bot yelling about unexpected console logs (and debuggers!) as well. However, this generally shouldn’t cause the build to fail, so I’m as puzzled by this error as you are. One thing to check as @jen and @Dennis mentioned is to move your babel-eslint and babel-plugin-transform-remove-console packages to dependencies rather than devDependencies so they are installed when the build runs.

I’ve tried to copy your test config in a vue project of mine and it seems to successfully build and suppress all console.logs, though it does yell at me for unexpected console.logs. Here’s a reference to that project if it’s of any help: GitHub - shortdiv/vue-three

Hope that helps!