参考: https://blog.csdn.net/weixin_37219302/article/details/79685351html
在.eslintrc.js中修改为:vue
// required to lint *.vue files
plugins: [
'vue',
// 此插件用来识别.html 和 .vue文件中的js代码
'html'
],
报错: Module build failed: Error: Failed to load plugin html: Cannot find module 'eslint-plugin-html'npm
运行ui
npm install eslint-plugin-html --save-devspa
便可解决.net
Module build failed: Error: Cannot find module ‘file-loader’插件
运行 npm install file-loader –save-dev便可解决eslint
这里的file-loader就是你cannot find module ‘XXXXX’htm
就是你缺乏啥插件你安装就好了。blog