I have probably a problem with this.nav.push
in Ionic. I have done a login/registration page but when I login, I get this error message. I have to add some code
what you need to do is to add @IonicPage() before '@Component' and import 'IonicPage' like this :
import {NavController, IonicPage} from 'ionic-angular';
then you need to create a module for the homepage i.e in the home directory , create home.module.ts with the following contents
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { HomePage } from './home';
@NgModule({
declarations: [
HomePage
],
imports: [
IonicPageModule.forChild(HomePage),
],
exports: [
HomePage
]
})
export class HomePageModule {}
and reload the project