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

461
Visualizações
I am implementing an electron application using electron packager. However, it gives an error that it could not find the index.js file

I have developed an application with react and electron and used typescript. My file directory is as follows. In my index.tsx file, there is the classic index.tsx file content from React. My app is running smoothly. I want to run my application on all platforms and I use electron packager for this, but it throws me an error like "The main entry point to your app was not found. Make sure "index.js" exists and does not get ignored by your ignore option"

enter image description here

enter image description here

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

0

I have faced same issue and solved by using below steps.

npm install @capacitor/core@1.5.3
npm install @capacitor/cli@1.5.3 --save-dev

npx cap init

Open angular.json file and change output dir by default to “www”.

"outputPath": "dist/smart-accounting-book",

ng build --prod

npx cap add electron

Go to file:

electron→ app → index.html and change href=”/” to href=”./”

electron→ index.js and make below changes to isDevMode, i.e const isDevMode = false;

npx cap open electron

That’s it.

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