0

when I use the "yarn build" command to build vue.js project, I get "Unexpected console statement" error.

For development I am using my own server. yarn run starts its own server. So I have to build the project using yarn and deploy the build to my server. But I cannot have console.log() statements.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Tusshu
  • 1,664
  • 3
  • 16
  • 32
  • This error comes from your linter. Check the documentation for your linter for how to resolve it. – Tanner Nov 14 '19 at 20:02
  • Have you tried [Eslint: How to disable “unexpected console statement” in Node.js?](https://stackoverflow.com/a/53333105/3499595)? The linked answer is even about Vue CLI 3 projects. – yuriy636 Nov 14 '19 at 21:31

1 Answers1

0

You can seed the logs with the shared commands. ./node_modules/.bin/pm2 logs