-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
pdfjs-dist 1.3.94 throwing error #6760
Comments
@viz Could you post link to the complete example? |
With irrelevant stuff removed...
|
whoops - accidentally closed the issue |
Worked previously when pdfjs was at version 1.3.78. Only started to see this problem when we re-installed node modules. |
Looks like it's a problem with webpack, and we don't support webpack atm. The snippets above are not really helpful. Can you create a sample project with react-pdfjs 1.0.1 and document steps to reproduce the issue including build steps? This can speed up the issue resolution. |
I think the simple way will be to remove UMD headers from the inside of the pdf.js and pdf.xxx.js files. |
I'll have a look - will try to create a small sample project showing the issue |
Last working version for us was 1.3.90. The only hint I've found is in https://github.com/mozilla/pdfjs-dist/blame/07affac44670de2ec4886d6ffd3f0641c0556f62/build/pdf.js#L38 |
using react-pdfjs 1.0.1 which has pdfjs-dist as a dependency.
In the last hour pdfjs 1.3.94 was released and I'm now getting:
Uncaught TypeError: Cannot read property 'PDFJS' of undefined
The text was updated successfully, but these errors were encountered: