Angular 2 'component' is not a known element

后端 未结 15 2138
傲寒
傲寒 2020-11-30 17:58

I\'m trying to use a component I created inside the AppModule in other modules. I get the following error though:

\"Uncaught (in promise): Error: Temp

15条回答
  •  广开言路
    2020-11-30 19:04

    I got the same issue, and it was happening because of different feature module included this component by mistake. When removed it from the other feature, it worked!

提交回复
热议问题