The open source project responsible is developed by Facebook’s parent company Meta and is called Create React App. Distributed on both GitHub and npm, Create React App is designed to help developers quickly build single-page React applications with just a few simple commands. As a result, loads of developers rely on it to build apps for Facebook and other sites.
GitHub users recently began reporting problems when trying to build their create-react-app builds after receiving the following error message: “Type:Error: MiniCssExtractPlugin is not a constructor”. This error message shows that the problem doesn’t lie with Create React App itself but rather with one of its dependencies called Mini CSS Extract Plugin.
The latest version of the Mini CSS Extract Plugin (v. 2.5.0) was published quite recently and it appears that this update is what is leading to Create React App project builds to fail.
While BleepingComputer believes that the addition of “types” to the plugin could be what is leading to Create React App instances to break, a bug report on GitHub takes a further look at some possible causes.
Hopefully the problem will be resolved soon with a more permanent fix but until then, you can try testing out these two workarounds to get your Create React App builds to work.