参考: https://blog.csdn.net/weixin_37219302/article/details/79685351

 

在.eslintrc.js中修改成:

// 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 install eslint-plugin-html --save-dev

即可解决

Module build failed: Error: Cannot find module ‘file-loader’

运行 npm install file-loader –save-dev即可解决

这里的file-loader就是你cannot find module ‘XXXXX’

就是你缺少啥插件你安装就行了。

 

相关文章:

  • 2021-06-05
  • 2021-06-01
  • 2021-08-04
  • 2022-12-23
  • 2021-08-28
  • 2021-08-17
  • 2021-11-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案