安裝了這個插件 mini-css-extract-plugin 之後
webpack打包總在報錯 Cannot destructure property “createHash” of ‘undefined’ or ‘null’.
後來網上查了一下這個插件 mini-css-extract-plugin 是webpack4纔有的插件,所以出現在webpack版本的問題
把webpack升級或降級一下就可以了
我目前使用的是4.29.6
安裝了這個插件 mini-css-extract-plugin 之後
webpack打包總在報錯 Cannot destructure property “createHash” of ‘undefined’ or ‘null’.
後來網上查了一下這個插件 mini-css-extract-plugin 是webpack4纔有的插件,所以出現在webpack版本的問題
把webpack升級或降級一下就可以了
我目前使用的是4.29.6