Cannot destructure property `createHash` of 'undefined' or 'null'.

安裝了這個插件 mini-css-extract-plugin 之後
webpack打包總在報錯 Cannot destructure property “createHash” of ‘undefined’ or ‘null’.

後來網上查了一下這個插件 mini-css-extract-plugin 是webpack4纔有的插件,所以出現在webpack版本的問題

把webpack升級或降級一下就可以了
我目前使用的是4.29.6

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章