A bunch of Facebook apps aren't working - and now we know why

Someone drinking a coffee and scrolling through Facebook on a laptop
(Image credit: Shutterstock/Kaspars Grinvalds)

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 mini-css-extract-plugin@2.4.5) 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

Anthony Spadafora

After working with the TechRadar Pro team for the last several years, Anthony is now the security and networking editor at Tom’s Guide where he covers everything from data breaches and ransomware gangs to the best way to cover your whole home or business with Wi-Fi. When not writing, you can find him tinkering with PCs and game consoles, managing cables and upgrading his smart home. 

Read more
Computer Hacked, System Error, Virus, Cyber attack, Malware Concept. Danger Symbol
Meta warns of worrying security flaw hitting open source type software
Slack
Slack is back and running smoothly, so get back to work everyone!
Facebook on laptop
Facebook is blocking Linux topics and channels with no apparent reason
hacker.jpeg
VSCode extensions pulled over security risks, but millions of users have already installed
CapCut logo on a black and red background
CapCut hit by US ban – and in completely unrelated news, Instagram has just revealed a new video-editing app
An abstract image of a lock against a digital background, denoting cybersecurity.
Critical security flaw in Next.js could spell big trouble for JavaScript users
Latest in Software & Services
TinEye website
I like this reverse image search service the most
A person in a wheelchair working at a computer.
Here’s a free way to find long lost relatives and friends
A white woman with long brown hair in a ponytail looks down at her computer in a distressed manner. She is holding her forehead with one hand and a credit card with the other
This people search finder covers all the bases, but it's not perfect
That's Them home page
Is That's Them worth it? My honest review
woman listening to computer
AWS vs Azure: choosing the right platform to maximize your company's investment
A person at a desktop computer working on spreadsheet tables.
Trello vs Jira: which project management solution is best for you?
Latest in News
Nintendo Switch 2 Joy-Con up-close from app store
Nintendo's new app gave us another look at the Switch 2, and there's something different with the Joy-Con
cheap Nintendo Switch game deals sales
Nintendo didn't anticipate that Mario Kart 8 Deluxe was 'going to be the juggernaut' for the Nintendo Switch when it was ported to the console, according to former employees
Toni Collette in Hereditary
Everything leaving Netflix in April 2025 – from the scariest movie ever made to a beloved DreamWorks animation with 99% on Rotten Tomatoes
Three angles of the Apple MacBook Air 15-inch M4 laptop above a desk
Apple MacBook Air 15-inch (M4) review roundup – should you buy Apple's new lightweight laptop?
Witchbrook
Witchbrook, the life-sim I've been waiting years for, finally has a release window and it's sooner than you think
Close up of Leica M11-P viewfinder
I wince at the prospect of the rumored Leica M11-V – here's why