0

Template parse errors:

'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

I have registered the module and imported it in my main file as described in https://www.telerik.com/kendo-angular-ui/components/pdfexport/ but still keeps getting this error. I am working with Angular 5.

Module is registered like this

My HTML file looks like this

Screen shot of the Error

I found what I did wrong : This is from telerik site of kendo-ui-angular But really it's kendo-pdf-export as shown in the example.

3 Answers3

1

In your view you're using kendo-angular-pdf-export, base on the telerik kendo documentation it should be kendo-pdf-export

John Velasquez
  • 3,421
  • 2
  • 18
  • 23
  • It worked. But I don't know why they mention kendo-angular-pdf-export in https://www.telerik.com/kendo-angular-ui/components/pdfexport/. Thank you. – Uthpala Pathirana May 03 '18 at 05:41
  • 1
    @UthpalaPathirana Looks like a typo to me. `kendo-angular-pdf-export` is actually the package-name (without the `@progress` scope) – Philipp May 03 '18 at 05:50
0

if you used the module. you must import "PDFModule" in your module .

0

I had same issue with

kendo-dropdowlist

i.e. 'kendo-dropdownlist' is not a known element:

  1. If 'kendo-dropdownlist' is an Angular component, then verify that it is part of this module.
  2. If 'kendo-dropdownlist' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("

I fixed this issue by importing relevant module in parent module.

In my case

DropDownsModule

was needed to be import in module's import array. Thanks.

Muhammad Hamed K
  • 279
  • 1
  • 4
  • 9