-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ERROR resolvePDFJS is not a function #18
Comments
deleting node_modules fixed it. Sorry for bothering. |
Probably the dependency wasn't up to date. Thanks for checking! |
@johannschopplich this actually is a valid issue, I had to use the following to get things working, even though I'm not using a serverless environment. I'm not quite sure what's caused the issue. await configureUnPDF({
pdfjs: () => import("pdfjs-serverless"),
}); |
@parhammmm It seems like your code is invalid. await configureUnPDF({
// Use the official PDF.js build (make sure to install it first)
pdfjs: () => import("pdfjs-dist"),
}); Please open a separate issue if you encounter a bug, don't add notes to this closed issue. Thanks! |
@johannschopplich I tried that and that did not work. But the serverless did I opened a separate PR: #19 Thanks for taking a look :) |
@johannschopplich can confirm the fix works |
Thanks a lot for confirming it! Closing it, since resolved. |
Environment
ERROR resolvePDFJS is not a function happens on the lastest v0.12 - v11 works fine
Reproduction
import { extractText, getDocumentProxy } from "unpdf";
Describe the bug
ERROR resolvePDFJS is not a function
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: