Ng2-pdf-viewer: Angular 5

Created on 13 Nov 2017  路  8Comments  路  Source: VadimDez/ng2-pdf-viewer

Update to Angular 5?

Most helpful comment

Still got this problem with Angular 5.1.0 and Material 5.0.2

All 8 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yashwanth493 picture yashwanth493  路  7Comments

RahmatAliMalik5 picture RahmatAliMalik5  路  5Comments

manojbhardwaj picture manojbhardwaj  路  7Comments

ShayShaked picture ShayShaked  路  5Comments

GarciaFreelancer picture GarciaFreelancer  路  6Comments