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 softwa...

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



from TechRadar - All the latest technology news https://ift.tt/3Ie1HDv
via IFTTT

COMMENTS

BLOGGER
Name

Apps,3858,Business,151,Camera,1155,Earn $$$,3,Gadgets,1741,Games,926,GTA,1,Innovations,3,Mobile,1697,Paid Promotions,5,Promotions,5,Sports,1,Technology,8106,Trailers,796,Travel,37,Trending,4,Trendly News,25335,TrendlyNews,126,Video,5,XIAOMI,13,YouTube - 9to5Google,125,
ltr
item
Trendly News | #ListenNow #Everyday #100ShortNews #TopTrendings #PopularNews #Reviews #TrendlyNews: A bunch of Facebook apps aren't working - and now we know why
A bunch of Facebook apps aren't working - and now we know why
Trendly News | #ListenNow #Everyday #100ShortNews #TopTrendings #PopularNews #Reviews #TrendlyNews
http://www.trendlynews.in/2022/01/a-bunch-of-facebook-apps-arent-working.html
http://www.trendlynews.in/
http://www.trendlynews.in/
http://www.trendlynews.in/2022/01/a-bunch-of-facebook-apps-arent-working.html
true
3372890392287038985
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy