#index.html no load

2 messages · Page 1 of 1 (latest)

toxic quartz
#

running npm start shows the electron . and it attempts to run electron. the application says it is running (in mac) but no window opens

hushed zephyr
#

you have to load html file or a url when your application get starts.
Here is an example :

  1. when you load url like below then firstly you have to start your react server
    win.loadURL('http://localhost:3000/')

  2. win.loadURL("file://"+ path.join(__dirname, "index.html"));