错误信息:
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.

Component is not part of any NgModule

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


Component is not part of any NgModule


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

Component is not part of any NgModule


相关文章:

  • 2021-07-27
  • 2021-10-30
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-15
  • 2021-10-13
  • 2021-07-06
  • 2021-10-30
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案