React项目build失败之MiniCssExtractPlugin
React项目build失败之MiniCssExtractPlugin
React项目,最新依赖"mini-css-extract-plugin": "^2.5.0"
会导致项目npm run build
失败:
node_modules/react-scripts/config/webpack.config.js:664
new MiniCssExtractPlugin({
^
TypeError: MiniCssExtractPlugin is not a constructor
解决方案:
npm i -D --save-exact mini-css-extract-plugin@2.4.5
程序员地瓜哥的小屋 文章被收录于专栏
IT相关技术学习