Hard reset doesn't work
See original GitHub issueHi there,
first thanks for that helpfull plugin!
A reload for the frontend-part (means changing /app/index.htm) works well. But if I define the electron-parameter the program crashes when I do make changes on the /main.js. Do you have any clue where does it come from?
Thanks in advance!
Two little fixed for your README:
- The line
mainWindow.loadUrl(
file://${__dirname}/index.html); -> The name of the function has changed loadUrl to loadURL (capital letters) - And the line electron: require(‘electron-prebuilt’) doesn’t work anymore, because electron-prebuilt doesn’t exist anymore.

Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:12 (6 by maintainers)
Top Results From Across the Web
4 Ways to Fix iPhone Won't Restart/Force Restart Not Working
There is a final way you can try if force restarting is either not working. That is put your iPhone into recovery mode...
Read more >iPhone Force Restart not working - Apple Support Communities
iPhone Force Restart not working · Press and quickly release Volume UP button · Press and quickly release Volume DOWN button · Press...
Read more >Android Factory Reset Not Working? Try These Fixes - Hongkiat
Go to Settings > Battery manager > Disable fast boot. · Now, turn off the phone. · Press Volume Down + Power button....
Read more >SOLVED: Hard Reset Not Working - iPhone 8 - iFixit
Try holding down the power button and while holding the power button in plug your device into a computer with iTunes on it...
Read more >What should I do if a hard reset doesn't work on a Samsung ...
Hard reset: depending on the model, make sure device is powered off. Hold the vol.down button and power button simultaneously till the logo...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I guess it must have something to do with spawn on windows. Maybe something like https://www.npmjs.com/package/cross-spawn could help.
I’ve found another solution that works ok (slower than electron-reload) which is nodemon:
nodemon --watch * --exec "electron .".@TomasHubelbauer it could, but I don’t want it to… the whole
console.logstuff were meant to be temporary. In the next release I want to have a proper event based system with well-defined error codes. So if you wait a little bit, we’ll have a better solution.