Ios device live reload not working


#1

Everything loads fine and runs fine the first time I build for my ios device using:

ionic cordova run ios --device -l -c

Saving a .ts file a few times works fine, but then randomly my device will stop live reloading. I’ll save and get this in the CLI:

[11:34:07] build started …
[11:34:07] deeplinks update started …
[11:34:07] deeplinks update finished in 107 ms
[11:34:07] transpile update started …
[11:34:08] transpile update finished in 75 ms
[11:34:08] webpack update started …
[11:34:08] webpack update finished in 552 ms
[11:34:08] build finished in 744 ms

and nothing happens. Just sits there. I noticed that when I hit save and it DOES work, the CLI outputs:

[11:07:54] build started …
[11:07:54] deeplinks update started …
[11:07:54] deeplinks update finished in 84 ms
[11:07:54] template update started …
[11:07:54] template update finished in 2 ms
[11:07:54] build finished in 87 ms

^^ the working version is missing the two lines about a webpack update. Every single time I can find in the CLI when it works, it is missing these two lines.

Occasionally I’ll hit save a few times and it will build and actually reload on the device. Then I do it again, and it stops working again. When this happens too many times in a row, I re-run the original “ionic cordova run” command and let it reload completely, but that takes for freaking ever (over 5 minutes).

I’ve searched and found others with the same issue with no solutions.

No errors pop up on the cli. Where can I start looking for problems here?


#2

Update. Fresh “run” command. Edited a page, hit save and got:

[12:51:36] build started …
[12:51:36] deeplinks update started …
[12:51:36] deeplinks update finished in 150 ms
[12:51:36] transpile update started …
[12:51:36] transpile update finished in 147 ms
[12:51:36] webpack update started …
[12:51:37] webpack update finished in 820 ms
[12:51:46] build finished in 9.64 s

And it actually reloaded on the device. So may not be a webpack thing? I don’t know the livereload seems very inconsistent. Sometimes I’ll get random errors for no reason like “unexpected }” and others, re-run the “run” command and it fixes itself. Still searching for an answer.