I have this random issue with ionic build or ionic run.
I\'ve noticed that during compilation it uses the cache of my source code, therefor
Would like to answer this question as it wasted some real valuable time for me.
I emptied the platforms folder and build the solution again. BTW, I am using Visual Studio for development. And I should solve the problem.
Also it is quite obvious but still wanted to reiterate that platforms should not be part of source control.
Hope it helps.