ionicframework error

Views: 261 Ask New Question


In development mode when i made changes then ionic is giving this error while navigating.

this.navCtrl.pop();

following error

You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times. Nav {_config: Config, _elementRef: ElementRef, _renderer: RendererAdapter, _componentName: undefined, parent: null, …} <ion-nav>​…​</ion-nav>​
NavControllerBase._postViewInit @ nav-controller-base.js:496
(anonymous) @ nav-controller-base.js:362
t.invoke @ polyfills.js:3
onInvoke @ core.es5.js:4128
t.invoke @ polyfills.js:3
r.run @ polyfills.js:3
(anonymous) @ polyfills.js:3
t.invokeTask @ polyfills.js:3
onInvokeTask @ core.es5.js:4119
t.invokeTask @ polyfills.js:3
r.runTask @ polyfills.js:3
o @ polyfills.js:3
invoke @ polyfills.js:3




core.es5.js:1084 ERROR Error: Uncaught (in promise): navigation stack needs at least one root page
    at c (polyfills.js:3)
    at Object.reject (polyfills.js:3)
    at NavControllerBase._fireError (nav-controller-base.js:322)
    at NavControllerBase._failed (nav-controller-base.js:310)
    at nav-controller-base.js:365
    at t.invoke (polyfills.js:3)
    at Object.onInvoke (core.es5.js:4128)
    at t.invoke (polyfills.js:3)
    at r.run (polyfills.js:3)
    at polyfills.js:3
On By

1 Answer


I figured out the wring thing i am doing, Basically on back button i am trying to do this.navCtrl.pop(); to goto previous screen but as screen refreshed the stack is empty.

On By


Answer This Question