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

467
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
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