-
Notifications
You must be signed in to change notification settings - Fork 37
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
Recovery from SystemJS error #139
Comments
Recovery is actually built into |
Potentially the only thing we don't account for is if importing fails on the very first load of the app. But after that it should recover. |
Hm, in my case nothing happens after hitting syntax error. Chokidar emits change event on change, but hot-reloader does not react on changes until full page refresh. |
Which version are you running. Also what is the output after enabling |
I'm using system-hot-reloader 1.1.0
That's displayed right after the load: This is on reload: This is after cleaning console and introducing syntax error (I removed And when I remove error and resave file, shows: Same message will be on all other attempts to resave without reloading whole page: |
Hmm, which version of SystemJS are you running? There was a bug with the old version of SystemJS. Also, notice the warning at the top. You need to load |
Wow, I didn't notice that JSPM beta.41 already came out yesterday... my SystemJS indeed was old, now I've updated to v0.20.10 Dev. This fixed a lot of issues, but particular case with syntax error still there. But now it behaves differently: On error introduction: And when error has been fixed, it keep showing like it still exist: Any attempts to resave file with fixed error will just show again messages from last screenshot.
Well, I'm quite sure that I do load it after SystemJS, but it still shows up. My configuration: Don't mind |
I'm also experiencing this issue. I've tried to make a simple example: |
Thanks, will sort this out this weekend. Have a deadline for Friday evening 🍕 |
I actually found out that workflow with this hot reloader much more enjoyable than with |
Apologies that I haven't been present. Have major deadlines for Friday. Will be pushing forwards next week. |
No need for that, it isn't your work after all! |
@alexisvincent sorry for bothering. This bug seriously interrupts development :(. Have you been able to fix it? Do you need help to fix it? |
Hi, @alexisvincent , I would also love to see this thing to be fixed! Fix for this issue will make development much less painful |
Sorry guys, been in a heavy deadline crunch for the past couple of months. Going to try get a look at this in the coming week or so. |
@alexisvincent after recent system.js update hot reload is able to recover from transpilation errors. I think you can close this bug. |
Yeap, seems so. |
Is it possible to somehow automatically recover from SystemJS error?
For example, if there were a typo in imported file, we've got following error:
Hot reloading not working after this error until whole page will be reloaded, which takes quite a lot of time for large apps.
The text was updated successfully, but these errors were encountered: