New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apparently Window Closes when I edit Main Electron File #2
Comments
From the top of the readme:
|
Ohh so this is just a replacement for Refresh❓
I still don't understand this bcz my terminal stops but the app is still running & AFAIK when terminal stops app also closes when this package is not used. |
Hey @sindresorhus, first off; thanks for the package! Adding my comment/question here since it's somewhat related to the issue opened. I've included It wasn't completely clear from the Thanks! |
I was also a bit confused as even though editing main.js does restart the app, it also exits the original process so you're left without terminal. I tried to patch around the source code but didn't get far, so decided to add my main process files to electron-reloader https://gist.github.com/Lokua/b88ffc4aa32398abe3cf8688444799ac |
@IssueHunt has funded $40.00 to this issue.
|
This issue is inherent to how Electron works (at least on Windows). When an electron app is launched, it will create a new process group, separate from the command line process. When you |
On MacOS, I'm hitting pretty much the same issue; on reload the terminal process exits and the app closes, then the app reopens (but the terminal process does not reconnect, leaving me with no console logs). |
I just added
console.log('its not working')
toindex.js
& app stopped.index.html
works.The text was updated successfully, but these errors were encountered: