Component is part of the declaration of 2 modules

前端 未结 16 721
我在风中等你
我在风中等你 2020-12-04 06:44

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

16条回答
  •  抹茶落季
    2020-12-04 07:30

    You may just try this solution ( for Ionic 3 )

    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

提交回复
热议问题