Ionic serve: force full rebuild

Hi, there seems to be a problem with WebPack and lazy loading in my app, whenever i do any kind of slight change while running ionic serve, sometimes even a space in the code the WebPack throws the most random meaningless errors about page modules being imported in the wrong location and other funny stuff.

For me it has made work unbearable, having to restart the ionic server everytime i wrote one line of code and wanting to see its effect.

Is there a way to run ionic serve in a manner which forces a full re-compile of the whole project whenever I save changes?


I am having similar problems the whole time… I get random errors on refreshes. Restarting ionic serve solves the issue, but it is quite annoying.

I am not getting any errors since I checked and upgraded the app-scripts version… I was using an old version apparently