webpack TypeError: The ‘compilation‘ argument must be an instance of Compilation解決方案
最近在學習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
完美解決