0
点赞
收藏
分享

微信扫一扫

vue 报错 Unexpected console statement (no-console)


报错原因

 eslint 配置缺失时,使用了 console.log

解决方案

在 package.json中的eslintConfig:{} 中的 “rules”  里添加代码  "no-console": "off"

"rules": {
"no-console": "off"
},

 

举报

相关推荐

0 条评论