【发布时间】:2018-10-13 06:57:18
【问题描述】:
模板解析错误:
'kendo-angular-pdf-export' is not a known element:
1. If 'kendo-angular-pdf-export' is an Angular component, then verify that it is part of this module.
2. If 'kendo-angular-pdf-export' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message
我已按照https://www.telerik.com/kendo-angular-ui/components/pdfexport/ 中的说明注册了模块并将其导入到我的主文件中,但仍然出现此错误。我正在使用 Angular 5。
Module is registered like this
我发现我做错了: This is from telerik site of kendo-ui-angular 但实际上是 kendo-pdf-export,如示例所示。
【问题讨论】:
-
你能告诉我们你做了什么
-
@JohnVelasquez 我已经编辑了这个问题。请参考以上内容。