vue-cliにてプロジェクト作成後、methods等のオプションにconsole.logを記述したい。
しかし、Unexpected console statement (no-console)というエラーが出る。
package.jsonに
"rules": {"no-console": 0}
と書くと、console.logを使用できるようになる。
それでもエラーが出る時には、npm run serveをやり直すことで解決する場合がある。
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
vue-cliにてプロジェクト作成後、methods等のオプションにconsole.logを記述したい。
しかし、Unexpected console statement (no-console)というエラーが出る。
package.jsonに
"rules": {"no-console": 0}
と書くと、console.logを使用できるようになる。
それでもエラーが出る時には、npm run serveをやり直すことで解決する場合がある。
Register as a new user and use Qiita more conveniently
Go to list of users who liked