-
-
Notifications
You must be signed in to change notification settings - Fork 906
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
TypeError: Cannot set property 'workerSrc' of undefined #313
Comments
It is ugly solution but I resolved like below.
|
and
|
Thank You So Much for solution. Its working now. |
Can't help you since you completely ignored the form I created to help you describe the issue. Also resolved in #291 |
I was having the same issues and following the suggestions in this issue im receiving a: InvalidPDFException {name: "InvalidPDFException", message: "Invalid PDF structure"} - error now. |
@jp3492, this issue was exclusive to React-PDF 3.x. Try 4.x. |
// It will work Now use this import { pdfjs } from 'react-pdf'; pdfjs.GlobalWorkerOptions.workerSrc = |
Before you start - checklist
What are you trying to achieve? Please describe.
Describe what are you trying to achieve Ex. I'd like to display multiple pages of my PDF.
Describe solutions you've tried
Describe solutions you've already tried, if any. Make sure to include code samples if you're stuck on implementation.
Additional information
If applicable, add screenshots (preferably with browser console open) and files you have an issue with to help explain your problem.
Environment
The text was updated successfully, but these errors were encountered: