Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

161
Vistas
MiniCssExtractPlugin is not a constructor

I created a fresh create-react-app template and built the project with npm run build command and got this error. I ejected react-scripts and i looked for reason why it isn't it building, but i didn't find anything. i've fixed css files imports in components. node version 16.13.2, npm version 8.1.2

/home/pawel/projekty/hashcode/config/webpack.config.js:623
        new MiniCssExtractPlugin({
        ^

TypeError: MiniCssExtractPlugin is not a constructor
    at module.exports (/home/pawel/projekty/hashcode/config/webpack.config.js:623:9)
    at Object.<anonymous> (/home/pawel/projekty/hashcode/scripts/build.js:51:16)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47

and this is ejected webpack config https://github.com/PSmigielski/hashcode/blob/master/config/webpack.config.js

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This seems to be a new issue that came out recently and an issue has been opened with the create-react-app repository.

https://github.com/facebook/create-react-app/issues/11930

The two workarounds right now seem to be these

1.) Pinning the mini css extract version:

npm i -D --save-exact mini-css-extract-plugin@2.4.5

2.) Adding a resolutions to the package.json works as well:

"resolutions": {
   "mini-css-extract-plugin": "2.4.5"
}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda