-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Bug: Cannot create a build of the project #11931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I can confirm having the same issue on a react app I created 1 hour ago. I can neither build or deploy. |
I also can confirm having the same issue on a react app. I can neither build or deploy. |
More info The temporary fix (mentioned in the issue) of editing the package.json to specify an earlier version of |
I also can confirm having the same issue. |
yeah, its still not working |
Downgrading the version fixed it, add this into package.json. "resolutions": {
"mini-css-extract-plugin": "2.4.5"
}, |
Hello, @ShernanJ I've added the code to my package.json and I'm still getting the TypeError. |
@hamilton-mike try to delete your node_modules folder, While you still have the code above inside package.json, then reinstall your packages with |
@ShernanJ still no bueno. getting the same error. |
Same issue here. |
Resolutions only works if using yarn, see: #11930 (comment)
|
I faced the same problem and shared the solution here #11934 |
@iaseth thank you for the share. |
Thank you @iaseth . For some reason, |
I ended up pinning
|
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. |
@garrettcfermo Try to edit your package.lock file according to the following database. Then, use
|
React version: 17.0.2
Steps To Reproduce
npx create-react-app app-name
(without Typescript)npm run build
.The current behavior
You'll get an error about the
MiniCssExtractPlugin
.The expected behavior
It should create a build version of the app 🙂
The text was updated successfully, but these errors were encountered: