[英]React npm run build error in node modules
I created a react app locally doing npx create-react-app appname
, removed the stock files that came with it did npm start
saw my changed locally and then did an npm run build
and I got this error:我在本地创建了一个反应应用程序
npx create-react-app appname
,删除了它附带的库存文件npm start
看到我在本地进行了更改,然后做了一个npm run build
,我得到了这个错误:
new MiniCssExtractPlugin({
^
TypeError: MiniCssExtractPlugin is not a constructor
Does anyone know what to do in this scenario?有谁知道在这种情况下该怎么做?
mini-css-extract-plugin requires webpack >= 4.1.0 mini-css-extract-plugin 需要 webpack >= 4.1.0
ref: https://github.com/webpack-contrib/mini-css-extract-plugin/issues/3参考: https://github.com/webpack-contrib/mini-css-extract-plugin/issues/3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.