You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The temporary fix (mentioned in the issue) of editing the package.json to specify an earlier version of mini-css-extract-plugin worked for me. Just remember to run yarn/npm install.
@hamilton-mike try to delete your node_modules folder, While you still have the code above inside package.json, then reinstall your packages with npm install.
Same issue here.
What is weird : I can run npm run start without problem (at least, all is not lost), but npm run build just fails.
And yes, I've used the fix npm i -D --save-exact mini-css-extract-plugin@2.4.5 but the issue still remains and I've tried clearing the cache, reinstalling npm and so on.
Thank you @iaseth . For some reason, @2.4.5 would not work, but @2.4.6 did the job.
The fix npm install mini-css-extract-plugin@2.4.6 was the one that worked for me.
I have tried all of these solutions and nothing seems to work for me. Does anyone else have ideas on how to fix the problem? I have deleted and refreshed everything but it still is not working. Tried the resolution / overrides / and adding it to my dependencies.
Hopefully they have a fix for this soon because I cant build any of my projects.
Activity
RelishedChicken commentedon Jan 14, 2022
I can confirm having the same issue on a react app I created 1 hour ago. I can neither build or deploy.
Severenit commentedon Jan 14, 2022
I also can confirm having the same issue on a react app. I can neither build or deploy.
Lundeful commentedon Jan 14, 2022
More info
#11930
The temporary fix (mentioned in the issue) of editing the package.json to specify an earlier version of
mini-css-extract-pluginworked for me. Just remember to run yarn/npm install.astalarico commentedon Jan 15, 2022
I also can confirm having the same issue.
Micah-6424 commentedon Jan 15, 2022
yeah, its still not working
ShernanJ commentedon Jan 15, 2022
Downgrading the version fixed it, add this into package.json.
fix for react/create-react-app#11931
hamilton-mike commentedon Jan 15, 2022
Hello, @ShernanJ I've added the code to my package.json and I'm still getting the TypeError.
ShernanJ commentedon Jan 15, 2022
@hamilton-mike try to delete your node_modules folder, While you still have the code above inside package.json, then reinstall your packages with
npm install.hamilton-mike commentedon Jan 15, 2022
@ShernanJ still no bueno. getting the same error.
LaetitiaBodin commentedon Jan 15, 2022
Same issue here.
What is weird : I can run
npm run startwithout problem (at least, all is not lost), butnpm run buildjust fails.And yes, I've used the fix
npm i -D --save-exact mini-css-extract-plugin@2.4.5but the issue still remains and I've tried clearing the cache, reinstalling npm and so on.JakeSchieber commentedon Jan 15, 2022
Resolutions only works if using yarn, see: #11930 (comment)
npm i -D --save-exact mini-css-extract-plugin@2.4.5andnpm installworked for me.iaseth commentedon Jan 15, 2022
I faced the same problem and shared the solution here #11934
hamilton-mike commentedon Jan 15, 2022
@iaseth thank you for the share.
LaetitiaBodin commentedon Jan 16, 2022
Thank you @iaseth . For some reason,
@2.4.5would not work, but@2.4.6did the job.The fix
npm install mini-css-extract-plugin@2.4.6was the one that worked for me.uhef commentedon Jan 16, 2022
I ended up pinning
mini-css-extract-pluginto2.4.7which seemed to be the last version before2.5.0:garrettcfermo commentedon Jan 16, 2022
I have tried all of these solutions and nothing seems to work for me. Does anyone else have ideas on how to fix the problem? I have deleted and refreshed everything but it still is not working. Tried the resolution / overrides / and adding it to my dependencies.
Hopefully they have a fix for this soon because I cant build any of my projects.
leeopop commentedon Jan 17, 2022
@garrettcfermo Try to edit your package.lock file according to the following database.
Then, use
npm ciinstead ofnpm install. This will fixate module version to 2.4.7.