-
Notifications
You must be signed in to change notification settings - Fork 55
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
require('../build/pdf.js') not working #12
Comments
I ran into this too. The problem seems to be that pdf.js is assuming that nothing else is using I have a very hacky solution, not remotely suitable for PR, but perhaps looking at the code that worked in my case might help you solve it for yours, and might lead to a general solution for everyone getting adopted for this project. I simply wrap the failing line in a
|
I am using webpack and having the same error. It seems to me that this part of code is trying to load pdfjs-dist pdf.js file. Does it need to be loaded first. if so would it not be something lke
|
This issue is known in the mozilla repo and has been fixed in the newer version of mozilla/pdf.js by changing the order of The thing is, there hasn't been a stable release after the fix was made by mozilla on 11th of march. I recommend only upgrading the source after they create a new |
Will this issue be fixed next time? |
edit webpack config or vue.config.js
|
I got an error on
pdfjsLib = require('../build/pdf.js');
(https://github.com/legalthings/pdf.js-viewer/blob/master/pdf.js#L12062)Indeed there is no more build folder, maybe a patch for pdf.js is missing.
The text was updated successfully, but these errors were encountered: