Update to Angular 5?
Angular 5.0.0 works with version 3.0.1 of ng2-pdf-viewer. Although the new 5.0.2 Angular does not work with version 3.0.1. Get an undefined PDFJS error.
I'm getting the same "undefined PDFJS error" in angular 5
I narrowed it down to this package: "@ angular/cdk": "^2.0.0-beta.8" to version 5.0.0-rc0 breaks PDFJS.
@xonuzofa have you found a way to solve this problem? I'm still having the issue.
@juanlurie I have figured out that @ angular/cdk package is part of the @ angular/material package. I have left the @ angular/cdk and @ angular/material at 2.0.0-beta.12. I have just upgraded to angular 5.0.3 and it works fine, it is angular material that has the bug.
Still got this problem with Angular 5.1.0 and Material 5.0.2
"@ angular/material": "2.0.0-beta.12",
"@ angular/cdk": "2.0.0-beta.12"
Leave these two like this. Mine is running like this with 5.1.0 Angular.
Version 4.0.0 supports angular 5
Most helpful comment
Still got this problem with Angular 5.1.0 and Material 5.0.2