A bunch of Facebook apps aren’t working – and now we know why


Many users have reported that their favorite Facebook apps are no longer working following a recent change to a popular open source software project.
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.
Mini CSS Extract Plugin is another popular project that over 4.6m GitHub repos and more than 7,000 npm projects rely on. This project is used to extract CSS code into separate files, generating a CSS file per each JavaScript file that contains CSS according to BleepingComputer.
Potential workarounds
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.
Until Facebook’s open source team releases a proper fix for the issue, some developers have been able to get their Create React App builds to work by downgrading Mini CSS Extract Plugin to version 2.4.5. According to developer Alexandru Pavalovi, you can pin your version to 2.4.5 by adding several lines of code to your JavaScript app’s package.json file. The code that needs to be added is:
“resolutions”: {
“mini-css-extract-plugin”: “2.4.5”
},
However, this workaround doesn’t work for those not using Yarn but front-end developer Oscar Busk says that running the following command (npm i -D –save-exact [email protected]) may work.
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.
We’ve also featured the best laptops for programming and best JavaScript courses
Via BleepingComputer
Audio player loading… Many users have reported that their favorite Facebook apps are no longer working following a recent change to a popular open source software project. The open source project responsible is developed by Facebook’s parent company Meta and is called Create React App. Distributed on both GitHub and…
Recent Posts
- Apple announces the iPhone 16e with Apple Intelligence for $599
- A popular Japanese distraction-free writing device is coming to the US
- Rivian’s new Dune edition lets you channel your inner Fremen
- Here’s when and where you can preorder the new iPhone 16E
- The Humane AI Pin debacle is a reminder that AI alone doesn’t make a compelling product
Archives
- February 2025
- January 2025
- December 2024
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- December 2023
- November 2023
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- February 2021
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- September 2018
- October 2017
- December 2011
- August 2010