-
Notifications
You must be signed in to change notification settings - Fork 67
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
[BUG] pdfjs-dist loader issue [Update version] #87
Comments
hello, i'm having the same problem. did you find a solution for this? |
No, I used 2.1.2 only which requires 2.5.207 version of pdfjs-dist. |
Okey error is gone but now i got this one Error while reading the pages ! :( |
It can be of number of reasons! check the console. May be pdf file is wrong or the way you are passing the props. |
All good, thank u so much bro! I'm gonna be working with this problem jeje xd |
I had the same issue. Just downgrade pdfjs-dist to 2.6.347. |
Hello sr, I do not know what it's happening. I downgrade pdfjs-dist to 2.6.347. but I'm getting the first error, |
Which one ? |
The below solution works for me Then in package.json we need to override the pdfjs-dist version to previous working version like this
and in scripts section add new preinstall entry: "preinstall": "npx npm-force-resolutions", The root cause of the problem is , though in the dependency package.json has version 2.6.347 for pdfjs-dist since ^ was there before the version number during npm install, it installs the most recent version of pdfjs-dist which is causing this problem. |
I'm found this problem and solve using useMemo to generate object url. This commet has details and an example |
When I update the package to the latest version, I am getting the below error
How to Reproduce
Steps to reproduce the behavior:
Expected behavior
Should work!
Details (please complete the following information):
Additional context
mozilla/pdf.js#13200
The text was updated successfully, but these errors were encountered: