I have this random issue with ionic build or ionic run.
ionic build
ionic run
I\'ve noticed that during compilation it uses the cache of my source code, therefor
If you use cordova build, sudo cordova build
sudo cordova build
sudo cordova prepare
at your cordova project root folder.
this command reflects your changes to builds(all platforms).