I recently upgraded ionic to the latest version (from 3.2.1 to 3.6.1) and encountered this error when calling navCtrl.popToRoot().
Runtime Error
Uncaught (in promise): removeView was not found
This happens when I load a page that has ion-tabs and try to pop() without changing a tab. If I select a different tab before calling pop(), the error doesn’t show. If I select a different tab, then select the first tab again, the error also doesn’t show.
Originally I had it set to setRoot(‘LoginPage’) (notice the lazy loading) and in the previous post I was trying to use popToRoot() because setRoot() wasn’t working.
Well, I changed it to setRoot(LoginPage) and added LoginPage to the declarations in app.module.ts and now it works.
I didn’t have to inject App into the constructor.
Hopefully this helps someone and if anyone knows a better way of accomplishing this, please let me know.