Ionic serve and Ionic run loading wrong app

The ionic serve and ionic run commands are not loading the app whose directory I am in but instead loading a different app I previously made. I have tried clearing the node.js cache and update node.js. I have also made sure I exited the server for the app that was made previously using the q command while ionic serve was running for that app.

I’m having the same problem, did you find a way to fix it?

I have the same problem.

Any ideas on how to work with this?


I have the same issue on Mac OSX. Any clue what is happening?

did you fix this problem yet? i am facing this problem right now

More than a year later and I am having the same problem.


I am not sure if the original problem is the same, but I solved mine and it was because I had deployed my first app (the wrong one loaded) as a PWA and had used Service Workers.

Chrome was still using the cache from that previous app. I ran ionic serve it loaded my wrong app, then I opened the Developer Tools, and under Applications tab, Service Workers option, it was there.

I clicked the ‘Unregister’ option, then under ‘Cache Storage’ section I deleted the registered previous application’s cache with the right click option. This solved my problem.

Hope that helps