Electron-builder: Blank screen on build

Created on 24 Jul 2017  Â·  5Comments  Â·  Source: electron-userland/electron-builder


  • Version: 19.16.2

  • Target: Mac x64



Hello, I have a pretty tiny (so far) Electron app. It runs fine on electron . but when I run build -m --x64 or build the resulting app simply gives me a white screen. Is there any way to debug this? Are there some common issues that may give this result? I looked on Google but couldn't find anything.

Most helpful comment

open dev tools ,See what is wrong。window.openDevTools();

All 5 comments

Just donated to increase priority.

open dev tools ,See what is wrong。window.openDevTools();

I recommend you to use https://github.com/sindresorhus/electron-debug So, when app is packed, you can use shortcuts to open devtools.

@hengkx @develar Thank you! I'm trying out electron-debug first.

Update: The window.openDevTools did the trick. So now here's my problem, and I can't figure out exactly what's wrong.

So when I open the debug menu, the exact error I get is Uncaught Error: Cannot find module where I require my start.js file. I have made sure all these files are listed either in files or under buildResources so I don't know what I'm doing wrong here.

Second update: It works now! I had to add the files both to files and buildResources. Thank you!

Was this page helpful?
0 / 5 - 0 ratings