安装了这个插件 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