JamesYin
JamesYin

Reputation: 742

Electron app not showing anything

I make a simple "hello world" type Electron app. After double click the exe file it not open any window at all. Just a thread showing in windows tasks manager. I try to debug main thread js. But it show no error. And if I run development mode it works(cli: electron main.js).

ENV: windows 7, x64

Build command: electron-builder

Upvotes: 6

Views: 5043

Answers (1)

JamesYin
JamesYin

Reputation: 742

Finally, I find the problem is package.json main property. The main property should point to main.js (main thread entry js file).

Upvotes: 3

Related Questions