Component is not part of any NgModule

错误信息:
core.js:1598 ERROR Error: Uncaught (in promise): Error: Template parse errors:
'app-project-type' is not a known element:
1. If 'app-project-type' is an Angular component, then verify that it is part of this module.

2. If 'app-project-type' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.


可能是这个页面所在的   module.ts   没有引用  'app-project-type' 所在的公共组件


Component is not part of any NgModule_第1张图片


所以要在需要使用的页面的   module.ts  下引用这个公共组件

Component is not part of any NgModule_第2张图片


你可能感兴趣的:(Component is not part of any NgModule)