Getting this backtrace on standard example code:
showToastWithCloseButton(){
const toast = this.toastCtrl.create({
message: 'Your files were successfully saved',
showCloseButton: true,
closeButtonText: 'Ok'
});
toast.present();
}
calling it from constructor in page
EXCEPTION: Error: Uncaught (in promise): EXCEPTION: Error in ./RoomPage class RoomPage_Host - inline template:0:0
ORIGINAL EXCEPTION: TypeError: activeNav.getActive is not a function
ORIGINAL STACKTRACE:
TypeError: activeNav.getActive is not a function
at NavPortal.NavControllerBase._insert (/app2/build/js/app.bundle.js:60479:34)
at NavPortal.NavControllerBase.insertViews (/app2/build/js/app.bundle.js:60417:33)
at App.present (/app2/build/js/app.bundle.js:52397:29)
at Toast.present (/app2/build/js/app.bundle.js:74079:26)
at RoomPage.showToastWithCloseButton (/app2/build/js/app.bundle.js:240:15)
at new RoomPage (/app2/build/js/app.bundle.js:226:14)
at DebugAppView._View_RoomPage_Host0.createInternal (RoomPage.template.js:21:24)
at DebugAppView.AppView.create (/app2/build/js/app.bundle.js:31938:21)
at DebugAppView.create (/app2/build/js/app.bundle.js:32150:44)
at ComponentFactory.create (/app2/build/js/app.bundle.js:31008:36)
ERROR CONTEXT:
[object Object]