Relative Content

Tag Archive for reactjsnode.jsexecutableelectron-forge

Electron Forge app starts up a local server on startup but generates multiple windows

I’ve created an Electron Forge App that wraps a React app but also should start a node.js local server when open. This works well when I run the app using npm start but when I run npm run make, the .exe file that’s created generates multiple windows in a loop. I can’t find the error, this is the code on main.js where I start the server: