我的博客都是我自己看,没事别在下面瞎比比,弄得人心情不爽。你觉得不对,你自己去写博客,少指手画脚。看到了我就删,反正我也不是大博主。

npm start 启动服务的时候,出现了一下报错:

You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
都是因为开启了eslint 编码规范检查


You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
 


解决办法:

1.找到webpack.base.conf.js文件:

找到这行代码注释掉就可以了!!


 //...(config.dev.useEslint ? [createLintingRule()] : []),
示例如下:

 2.npm start 执行之后就正常运行了!!
————————————————
版权声明:本文为CSDN博主「S筱潇S四维Smile」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_29483485/article/details/83062765

Logo

基于 Vue 的企业级 UI 组件库和中后台系统解决方案,为数万开发者服务。

更多推荐