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

Fails to load PDF when pdfjs-dist version 4.6.82 is installed #142

Closed
samiashi opened this issue Sep 3, 2024 · 1 comment · Fixed by #144
Closed

Fails to load PDF when pdfjs-dist version 4.6.82 is installed #142

samiashi opened this issue Sep 3, 2024 · 1 comment · Fixed by #144

Comments

@samiashi
Copy link

samiashi commented Sep 3, 2024

When using the @tato30/vue-pdf package with pdfjs-dist version 4.6.82, the PDF fails to load properly. This issue occurs when performing a clean install of dependencies, which results in pdfjs-dist version 4.6.82 being installed due to the version range specified in @tato30/vue-pdf’s package.json. Downgrading to pdfjs-dist version 4.5.136 resolves the issue.

This issue seems to be related to changes introduced in pdfjs-dist 4.6.82.

I recommend that the package pin the pdfjs-dist version instead of using a version range to prevent similar issues in the future.

"pdfjs-dist": "^4.5.136"

Additional context

  • vue-pdf: 1.11.0
  • vue: 3.4.38
@webdev7
Copy link

webdev7 commented Sep 4, 2024

I can also confirm the error, which has also been occurring for me since yesterday.
If I go back to pdfdist-js 4.5.13, the error no longer occurs.
I had doubts about myself and spent a long time looking for the cause of the error elsewhere, but in the end it was as simple as that. Thanks samiashi for reporting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants