Component is part of the declaration of 2 modules

前端 未结 16 753
我在风中等你
我在风中等你 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:40

    Simple fix,

    Go to your app.module.ts file and remove/comment everything that binds with add_event. There is no need of adding components to the App.module.ts which are generated by the ionic cli because it creates a separate module for components called components.module.ts.

    It has the needed module component imports

提交回复
热议问题