DEV Community

Discussion on: Slack / GitKraken / Discord electron loading screen tutorial

Collapse
nicolalc profile image
Nicola Author

I think your error shows up because you didn't initialize the mainWindow object, you need to init it as follow:

mainWindow = new BrowserWindow(windowOptions);

In your createWindow method after the windowOptions definition.

Collapse
cssmfc profile image
Dan N • Edited on

Its not that, but thank you anyway. I will try to find an answer which may be pretty simple to solve for experienced devs, but right now I'm not seeing it. Regards.