模板解析错误:
'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,如示例所示。
答案 0 :(得分:1)
在您看来,您正在使用kendo-angular-pdf-export
,根据telerik kendo文档,它应该是kendo-pdf-export
答案 1 :(得分:0)
如果您使用了该模块。您必须在模块中导入“PDFModule”。