【发布时间】:2020-02-25 02:59:01
【问题描述】:
我刚刚通过 Vue CLI 创建了一个新的 Vue 应用程序,但 我不能使用调试器或 console.log 否则我会在浏览器中收到错误,为什么以及如何允许它 ?
Unexpected 'debugger' statement (no-debugger) at src/components/SomeComponent.vue:48:7
【问题讨论】:
-
如果你添加了你得到的错误,当你得到那个错误时,它会很有帮助......这是一个 linting 错误吗?是 Webpack 错误吗?我知道您已经回答了自己的问题,但提供其他上下文仍然会有所帮助。
-
使用我遇到的错误进行编辑,是的,这是一个 linting 错误。
标签: vue.js vuejs2 eslint vue-cli vue-cli-3