Hello everyone, I hope you can help me.
I am trying to create pdf on my page with "Kendo UI for Angular PDF Export": https://www.telerik.com/kendo-angular-ui/components/pdfexport/
when I added the import "PDFExportModule" to my module:
import { PDFExportModule } from '@progress/kendo-angular-pdf-export';
NgModule({
imports: [
ReactiveFormsModule,
QuotationRoutingModule,
InputsModule,
ButtonsModule,
DropDownsModule,
CommonModule,
TranslateModule.forChild({
loader: {
provide: TranslateLoader,
useFactory: translateLoaderFactory,
deps: [HttpClient, MODULE_BASE_PATH],
},
isolate: true,
}),
MomentModule,
GridModule,
NotificationModule,
PDFExportModule,
TooltipModule,
NgxsModule.forFeature(),
],
declarations: [QuotationComponent, RequiredValidator],
exports: [QuotationComponent],
})
I get this error on the browser (image):
ERROR Error: Uncaught (in promise): Error: Unexpected token '<'
Evaluating http://localhost:4200/@progress/kendo-angular-pdf-export
Loading http://localhost:4100/quotation/bundles/quotation.umd.js?v=1599175943971
My page was working correctly before to import "PDFExportModule".
I couldn't find a way to fix this, does anyone know what might be going on?
best regards,
Configuration:
AngularCLI: 10.0.4
Node: 12.16.0
Angular: 10.0.5
----------
"@angular/common": "^10.0.5",
"@angular/core": "^10.0.5",
"@progress/kendo-angular-common": "^1.2.3",
"@progress/kendo-drawing": "^1.8.1",
"@progress/kendo-angular-pdf-export": "^2.0.4",
"rxjs": "~6.6.0",