Electron Build App Doesnt Start Express Server
I'm building an app and all works fine while I'm in developer mode. Everythink works as it should. But when I package my app with electron-builder, app opens but it doesnt start ex
Solution 1:
I had something similar happen to me. The challenge was that if you use fork() the application path changes. So I would recommend that you check __dirname
in all of your files especially the ones in your forked process (e. g. app.js). I wouldn't be surprised if some of them don't make sense anymore.
Solution 2:
I found the solution. The problem really was in my app.js code. At one detination I needed to add (path.join(__dirname, './path/to/file')). Guys thanks for your help.
Post a Comment for "Electron Build App Doesnt Start Express Server"