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

212
Vistas
Facing an error when deploying React app to github pages

I'm trying to deploy my react app to github pages but facing some errors.

At first, when I tried to run npm run deploy in the terminal, it showed me this error:

new MiniCssExtractPlugin({
 ^

And MiniCssExtractPlugin is not a constructor

After that, I tried: npm i -D --save-exact mini-css-extract-plugin@2.4.5 This solved the problem but when I ran it again (npm run deploy), I get this error:

Creating an optimized production build...
Failed to compile.

The target environment doesn't support dynamic import() syntax so it's not possible to use 
external type 'module' within a script

I don't know why it doesn't work, and also didn't find anything on the internet.

Thanks!

about 4 years ago · Juan Pablo Isaza
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