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