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

338
Visualizações
React ElectronJS can't load emitted JS/CSS in production

Background

I have built my React app in ElectronJS.

During development, the app ran perfectly and didn't have any errors fetching the JS/CSS.

However, AFTER compiling, meaning electron-builder compiled successfully and output the EXE file, ElectronJS can't locate the JS/CSS but the index.html loads.

I tried modifying buildResources from guides on other Stackoverflow threads to no avail

Expected

It loads the app and it works just like in development Development Screenshot

Actual result

It's a blank white screen and the network logs look like this index.html loads perfectly JS file can't load

Reproduction:

  • Clone https://github.com/ericwang401/echo-soundboard
  • Run npm run electron:build
  • Open output executable in /dist
  • Open devtools in the ElectronJS app
  • Click network (you might have to refresh to see the errors)
about 4 years ago · Juan Pablo Isaza
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