-
Notifications
You must be signed in to change notification settings - Fork 310
ionic serve crashes on file change (>= 0.0.47) #535
Comments
Tried removing node_modules and doing a fresh npm install? |
Can you run Thanks, |
sure:
that is the output if i change a TypeScript file. I noticed now that if i change index.html there seems to be an additional callback:
also, on a subsequent change of index.html (and contrary to a TS change) this appears:
Furthermore, the next change to index.html seems to complete random steps of previous attempts to build, as far as i can see, it changes on every run:
sometime it does a "build finished", sometimes only a "transpile started / finished" but it seems like random build steps that are triggered by a file change. So it seems to me there is something off with some async code. |
I don't think there's anything off necessarily WRT to async flows. It's all chained together via Promises. Are you using any options, or just straight We haven't seen this at all. Are you on Mac OS? Seems like it from the paths. What node version? We test in 4 and 6 LTS. Thanks, |
i was originally running node 7.0.0. tried now with 0.6.7 and 7.2.1. same behaviour I always run ionic serve with "-b". Because you asked i ran it without and voila! Issue dissappears. Tried two times, did the same change. When running with "-b" it goes bonkers, without it works just fine. Seems very strange to me. update: though it works without an error, i still get somewhat weird console output in that the message |
issue remains on 0.0.48. i looked into it with the debugger which reveals that it breaks at notification-server.js at line 20
wsServer is undefined. |
Edit: Any solution to this issue yet? I'm using 0.0.47 with node 6.9.1 on a Mac OS (should be ubuntu, I'm running in a virtual machine on my mac OS). Still getting the same errors as the folks here. Used ionic serve, ionic serve -all. Both do not work. =S |
@metzc, wanna fix it and do a PR? I am very focused on bundle sizes right now. Thanks, |
@danbucholtz i had a quick look into it and it seems to me that wsServer is used before we can be sure that it has been assigned (which happens at the async event wss.onConnection). The issue was introduced about two weeks ago in this commit: 62d6b23 (by removing the condition if the wss server is ready). @jthoms1 maybe you have a look because very likely there was a reason you removed the condition? |
This should be fixed now. Will be published tomorrow in Please let me know if it's not. Thanks, |
initial build works fine. as soon as i change a code file i puts out "build started ..." and immediately after that:
After that i halts there, doing nothing else. The watcher still runs, subsequent file changes result in the same behaviour.
This issue appeared right after i updated from 0.0.46 to 0.0.47
I run Node 7 if that matters.
The text was updated successfully, but these errors were encountered: