Skip to content

Conversation

woutkonings
Copy link
Contributor

  • Update buffer.ts and text.ts to import BaseDocumentLoader directly from @langchain/core
  • Resolves runtime import errors where BaseDocumentLoader was not exported from ../base.js
  • Fixes issues with PDF and CSV loaders that depend on these base classes

Fixes import errors:

  • "BaseDocumentLoader is not exported from '../base.js'" in buffer.js
  • "BaseDocumentLoader is not exported from '../base.js'" in text.js

Fixes #8441

- Update buffer.ts and text.ts to import BaseDocumentLoader directly from @langchain/core
- Resolves runtime import errors where BaseDocumentLoader was not exported from ../base.js
- Fixes issues with PDF and CSV loaders that depend on these base classes

Fixes import errors:
- "BaseDocumentLoader is not exported from '../base.js'" in buffer.js
- "BaseDocumentLoader is not exported from '../base.js'" in text.js
Copy link

vercel bot commented Jul 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview Jul 1, 2025 1:13am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) Jul 1, 2025 1:13am

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. auto:bug Related to a bug, vulnerability, unexpected error with an existing feature labels Jul 1, 2025
Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@christian-bromann christian-bromann merged commit e19b822 into langchain-ai:main Sep 9, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Title: BaseDocumentLoader import error in @langchain/community fs loaders with langchain 0.3.x
2 participants