electron-typescript-react icon indicating copy to clipboard operation
electron-typescript-react copied to clipboard

rs does not restart the main process

Open timohausmann opened this issue 3 years ago • 2 comments

According to https://github.com/electron-userland/electron-forge/issues/682#issuecomment-460866141 and https://www.electronforge.io/cli#start

If you type rs (and hit enter) in the same terminal where you ran the start command, the running app will be terminated and restarted.

Does this work for you? Somehow, it does not work for me. I tested with vanilla electron-forge and there it works.

So each time I change something on the main code, I have to Ctrl+C and npm start. Any ideas? How is your dev workflow?

timohausmann avatar Aug 30 '21 11:08 timohausmann

:point_up: Also does not work for me. Stopped working when I upgraded from Electron 12 to Electron 16

wobedi avatar Jan 04 '22 20:01 wobedi

Same problem for me. To trigger the reload you have to

  • change the main code
  • save the file
  • type rs
  • hit enter
  • AND save again the file

ccavalieri-bonfiglioli avatar Mar 25 '22 09:03 ccavalieri-bonfiglioli