angular Uncaught Error: Template parse errors:

缪志新
2023-12-01

Uncaught Error: Template parse errors:

‘XXX’ is not a known element:

问题

CUSTOM_ELEMENTS_SCHEMA 相关

Uncaught Error: Template parse errors: ‘XXX’ is not a known element:

  1. If ‘XXX’ is an Angular component, then verify that it is
    part of this module.
  2. If ‘XXX’ is a Web Component then add
    ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component
    to suppress this message.

解决

在相应的 modules 引入 XXX 模块

参考

导入RouterModule

 类似资料:

相关阅读

相关文章

相关问答