Open fasterthanlime opened 7 years ago
It seems relatively trivial to add a try/catch to https://github.com/electron/electron-compile/blob/master/src/pathwatcher-rx.js but I'm a bit confused by the rxjs/Observable
logic so it's probably best fixed internally instead of me opening a wonky PR :)
If by mistake, a
file:///
url is requested, and it points to a non-existent file, the watcher will crash and not recover:Expected behavior: throw a 404, sure, but keep watching so that when the error is fixed, HMR can pick up the changes.