question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: Cannot create a build of the project

See original GitHub issue

React version: 17.0.2

Steps To Reproduce

  1. Clean install with npx create-react-app app-name (without Typescript)
  2. After install go in to folder and run npm run build.

The current behavior

You’ll get an error about the MiniCssExtractPlugin.

TypeError: MiniCssExtractPlugin is not a constructor

The expected behavior

It should create a build version of the app 🙂

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:6
  • Comments:17

github_iconTop GitHub Comments

2reactions
ShernanJcommented, Jan 15, 2022

Downgrading the version fixed it, add this into package.json.

"resolutions": {
    "mini-css-extract-plugin": "2.4.5"
},
1reaction
iasethcommented, Jan 15, 2022

I faced the same problem and shared the solution here https://github.com/facebook/create-react-app/discussions/11934

Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot create new pipeline even being admin
can't see “Create/New pipeline” option in pipelines “All” tab . used to work fine before. checked i am project admin as well. Azure...
Read more >
bug: can't create a new project at all - 1. General - Trados Studio
I can open packages, open existing projects, do all my work (which never involves creating new projects, fortunately). But this — doesn't.
Read more >
Bug: 'C++ Compile Failed'. I Cannot create a C++ project
I Cannot create a C++ project. The compile bug exists in both the C++ project creation wizard and the BP creation wizard. The...
Read more >
Recreating projects using jenkins-cli generates "cannot create ...
The issue seems to occur if the job already exists and has been run multiple times before being deleted and recreated. So, if...
Read more >
Bug: Cannot build project until prerequsit is built - Eclipse
The project cannot be built until its prerequisite foundation is built. Cleaning and building all projects is recommended radical Unknown
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found