Closed tbhaxor closed 1 week ago
Hey there, @tbhaxor! I'm here to help you with bug fixes, answer questions, and guide you on becoming a contributor. Let's work on resolving the issue together.
The issue you're encountering is because the @langchain/core
package does not export a module directly under callbacks
. Instead, it exports specific submodules like callbacks/base
, callbacks/dispatch
, etc.
To resolve this, you should import from one of the specific submodule paths:
import { someFunction } from '@langchain/core/callbacks/base';
Make sure to use the correct submodule path as per the exports configuration [1].
To continue talking to Dosu, mention @dosu.
Checked other resources
Example Code
Also I have tried in the node REPL
Error Message and Stack Trace (if applicable)
Cannot find module '@langchain/core/callbacks' or its corresponding type declarations.ts
Description
@langchain/core
@langchain/core/callbacks
it will fail, but importing@langchain/core/embeddings
worksSystem Info
Platform: Linux
Nodejs Version: v20.17.0
We are using pnpm, therefore pnpm version: 9.12.1