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