报错原因
eslint 配置缺失时,使用了 console.log
解决方案
在 package.json中的eslintConfig:{} 中的 “rules” 里添加代码 "no-console": "off"
"rules": {
"no-console": "off"
},
微信扫一扫
eslint 配置缺失时,使用了 console.log
在 package.json中的eslintConfig:{} 中的 “rules” 里添加代码 "no-console": "off"
"rules": {
"no-console": "off"
},
相关推荐