Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with dependencies in 3.0.8 #342

Closed
perpifran opened this issue Jul 2, 2018 · 7 comments
Closed

Problem with dependencies in 3.0.8 #342

perpifran opened this issue Jul 2, 2018 · 7 comments
Labels

Comments

@perpifran
Copy link

- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [x] Bug report -> please search issues before submitting
- [ ] Feature request
- [ ] Documentation issue or request

When I install 3.0.8 version of the library, the console show me:

warning " > ng2-pdf-viewer@3.0.8" has unmet peer dependency "pdfjs-dist@1.9.489".
warning " > ng2-pdf-viewer@3.0.8" has unmet peer dependency "@types/pdfjs-dist@^0.1.1".
warning "ng2-pdf-viewer > pdfjs-dist > worker-loader@0.8.1" has incorrect peer dependency "webpack@>=0.9 <2 || ^2.1.0-beta || ^2.2.0".

In addition, the library does not work, it does not give errors but it does not show the pdf.
I suspect that the problem of dependencies with the pdf.js library is the cause.

Enviroment:

@angular/*: 4.2.6
webpack: 3.3.0
ng2-pdf-viewer: 3.0.8
@therawk
Copy link

therawk commented Jul 20, 2018

+1

I have the same problem. I'm showing a spinner when loading the pdf and since > 5.0.1 the pdf doesn't show up anymore / doesn't stop loading

@jrupik
Copy link

jrupik commented Jul 26, 2018

+1
I Have similar problem with versions above 5.0.1. The pdf doen't load - infinite spinner. Sometimes loads only first page but no others and spinner doesn't stop.

@VadimDez
Copy link
Owner

@jrupik can you reproduce it with http://vadimdez.github.io/ng2-pdf-viewer/ ?

@jrupik
Copy link

jrupik commented Jul 27, 2018

No I can't, it is in Electron + Angular6 app. Version 5.0.1 works, but versions > 5.0.1 not. It is frustrating.

@therawk
Copy link

therawk commented Aug 29, 2018

Problem still occurs with 5.1.2

@jrupik
Copy link

jrupik commented Sep 10, 2018

5.0.1 used pdfjs-dist 2.0.489, next releases using pdfjs-dist 2.0.550 and it is probably related to issues of pdf.js: 8127 (mozilla/pdf.js#8127) and similar (Error when loading PDF that uses system fonts mozilla/pdf.js#4244) - still opened issues
I have got similar error:
Uncaught Error: Requesting object that isn't resolved yet Helvetica_path_s
at PDFObjects_get [as get] (pdf.js:8845)
at FontFaceObject_getPathGenerator [as getPathGenerator] (pdf.js:9705)
at CanvasGraphics.paintChar (pdf.js:10849)
at CanvasGraphics_showText [as showText] (pdf.js:10997)
at CanvasGraphics_executeOperatorList [as executeOperatorList] (pdf.js:10399)
at InternalRenderTask__next [as _next] (pdf.js:8998)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
at push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask (zone.js:496)
at ZoneTask.invoke (zone.js:485)

When you change "pdfjs-dist": "2.0.550" to "pdfjs-dist": "2.0.489" in ng2-pdf-viewer v5.1.2 packages.json all starts to work properly.

@stale
Copy link

stale bot commented Jul 31, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 31, 2020
@VadimDez VadimDez closed this as completed Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants