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

463
Views
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 answers
Answer question

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 Report
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!