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

137
Views
electron js does not start react js

i have a react app inside of my electron js i use electron-packager . for creating exe file of my project the exe file is generated success fully but the issue is that when i open the exe file only the electron app gets started since i dont do npm start my react app is not starting and the screen is white when the app start

in devlopement i can do npm start(to start react ) and then i can do npm run dev (to start electron) i am adding scripts that are in my pakage.json what changes must i do to fix this issue

    "start": "electron .",
    "build": "react-scripts build",
    "dev": "electron .",
    "test": "react-scripts test",
    "electron": "npm:start && electron .",
    "eject": "react-scripts eject"
  },

enter image description here

const { app, BrowserWindow } = require("electron");
const isDev = require("electron-is-dev");
let mainWindow;

app.on("ready", () => {
  mainWindow = new BrowserWindow({
    width: 1024,
    height: 680,
    webPreferences: {
      nodeIntegration: true,
    },
  });
  const urlLocation = isDev ? "http://localhost:3000" : "http://localhost:3000";
  mainWindow.loadURL(urlLocation);
  mainWindow.maximize();
});
about 4 years ago · Juan Pablo Isaza
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!