最近在学习webpack   需要用到html-webpack-plugin插件时    出现以下报错

 

webpack TypeError: The ‘compilation‘ argument must be an instance of Compilation

 

解决方案:

1.卸载webpack5

npm uninstall webpack -g(卸载完注意是看一下package.json)

2.下载webpack4

npm install webpack@4.44.2 -g

 

完美解决

相关文章:

  • 2021-10-24
  • 2021-09-23
  • 2021-12-28
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
  • 2021-05-02
  • 2022-02-05
猜你喜欢
  • 2021-06-09
  • 2021-11-17
  • 2021-12-27
  • 2021-06-21
  • 2021-07-05
  • 2022-12-23
相关资源
相似解决方案