I try to build an ionic 2 app. When I try the app in the browser with ionic serve or launch it on an emulator everything works fine.
But when I try to build it every
In my case, this error happen when i call a page by using the following code
this.navCtrl.push("Login"); // Bug
I just removed the quotes like the following and also imported that page on the top of the file which i used call the Login page
this.navCtrl.push(Login); // Correct
I can't explain the difference at this time since i'm a beginner level developer