this.nav.setRoot(‘Page’) == Cannot read property ‘getActiveChildNavs’ of undefined

Ionic version: (check one with “x”)
[ ] 1.x (For Ionic 1.x issues, please use
[X] 2.x
[X] 3.x

I’m submitting a … (check one with “x”)
[X] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: or

Current behavior:
I open a page which is not on my home page tab bar and then I get this error.

2017-08-04 01_00_25

Expected behavior:
I get no error.

Steps to reproduce:
Hard to explain.

Button: (click)="openPage(page)"

openPage(component) {;

Ionic info::

cli packages: (C:\xampp\htdocs\node_modules)

    @ionic/cli-plugin-cordova       : 1.6.1
    @ionic/cli-plugin-ionic-angular : 1.4.1
    @ionic/cli-utils                : 1.7.0
    ionic (Ionic CLI)               : 3.7.0

global packages:

    Cordova CLI : 7.0.1

local packages:

    @ionic/app-scripts : 2.1.3
    Cordova Platforms  : none
    Ionic Framework    : ionic-angular 3.6.0


    Android SDK Tools : 25.2.5
    Node              : v6.9.1
    OS                : Windows 10
    npm               : 5.3.0

Author: Fantashit

1 thought on “this.nav.setRoot(‘Page’) == Cannot read property ‘getActiveChildNavs’ of undefined

  1. if you have attribute selectedTabIndex in <super-tabs [selectedTabIndex]="selectedTabIndex"></super-tabs> , in your typescript file you have to initialize this selectedTabIndex to 0, otherwise you would get this error

Comments are closed.