-
Notifications
You must be signed in to change notification settings - Fork 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
PDFLoader is not working - Cannot find package 'pdf-parse' #445
Comments
Hi, you can fix this by installing |
Hi @nfcampos, |
We're actively working on improving the docs, will make sure to include this, thanks for letting us know |
I agree with @kulaone this needs to be documented. Just run into this issue myself. |
Hi, we have now added this to the docs, see https://js.langchain.com/docs/modules/indexes/document_loaders/examples/file_loaders/pdf |
When loading the library the PDFLoader won't work unless runing a npm install inside the library.
This is because the package: "pdf-parse": "^1.1.1", is not found.
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'pdf-parse' imported from /home/runner/LangChain/node_modules/langchain/dist/document_loaders/pdf.js
Can we add it to the "dependencies" area in package.json?
The text was updated successfully, but these errors were encountered: