Component is part of the declaration of 2 modules

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

    IN Angular 4. This error is considered as ng serve run time cache issue.

    case:1 this error will occur, once you import the component in one module and again import in sub modules will occur.

    case:2 Import one Component in wrong place and removed and replaced in Correct module, That time it consider as ng serve cache issue. Need to Stop the project and start -do again ng serve, It will work as expected.

提交回复
热议问题