Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

262
Visualizações
Building REACT Project Error Message (Entrypoint html-webpack-plugin for "index.html" = index.html)

I'm unable to build my react project using npm run build as I keep getting the error message below:

Child __offline_serviceworker:
     1 asset
    Entrypoint __offline_serviceworker = __offline_serviceworker
Child html-webpack-plugin for "index.html":
     1 asset
    Entrypoint html-webpack-plugin for "index.html" = index.html

I'm fairly new to building react projects so apologies if this is an amateur question. What I've tried already:

  1. I've tried changing the entry point by following this html-webpack-plugin Entrypoint undefined = index.html but it still hasn't worked.

  2. I've attempted downgrading webpack to 3.07 as well but that solution didn't help either.

  3. I've tried other options including npm i mishoo/UglifyJS2#harmony in terminal as pointed out here: https://github.com/webpack/webpack-pwa/issues/7 but still no luck

I currently can't think of any other solution thus I decided to post here.

My webpack is located in: internals/webpack/webpack.prod.babel

My index.html is located in the root folder

In my package.json, I have webpack as follows:

"devDependencies": {
 "html-webpack-plugin": "3.0.7",
...
}

I'd totally appreciate help to help resolve this issue. Thanks in advance everyone.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

npm run build will work only if you specify what needs to be done for build in the package.json file. but if your intension is just to install packages(i.e. first step) run "npm install" and to run the code run "npm start"

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda