Angular 2中 ‘component’ is not a known element

报错如下图:
Angular 2中 ‘component‘ is not a known element
When I deal with similar problems, there are several points :

  • Check the name is correct? (also check the selector defined in the component)
  • Declare the component in a module?
  • If it is in another module, export the component?
  • If it is in another module, import that module?
  • Restart the cli?

相关文章:

  • 2021-06-29
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-21
  • 2021-12-09
  • 2021-10-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
相关资源
相似解决方案