I am facing this error:
“ERROR Error: Uncaught (in promise): navigation stack needs at least one root page”
First I am on home page tab, then after clicking on user picture I am going to visit clicked user’s profile page(new component). Then I am going to click any other tab. Now when I click on home page, I cannot see home page, instead of this I am viewing clicked user’s profile page. I want to get rid of this.
I am doing this code
ionViewDidLeave(){
this.navCtrl.pop();
this.navCtrl.setRoot(TabsPage);
}
It would seem to me to be a very dangerous thing to call any navigation methods inside ionViewDidLeave(). Can we achieve what you are trying to do without doing that?
Tabs navigation can be kindof tricky. I have some experience getting around some tabs pitfalls, but it’s very difficult to provide any help without almost no specific information on your end.