Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

210
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!