Skip to content

Circular re-export "is not a constructor" #227

@kirrg001

Description

@kirrg001

Hi!

When using @langchain/langgraph together with IITM there is an error thrown:

Error Message: RunTree is not a constructor
Error Type: TypeError
Stack: TypeError: RunTree is not a constructor
    at AsyncLocalStorageProvider.runWithConfig (file:///Users/katharina/dev/reproduce-iitm-bug/node_modules/@langchain/core/dist/singletons/async_local_storage/index.js:35:49)
    at file:///Users/katharina/dev/reproduce-iitm-bug/node_modules/@langchain/core/dist/runnables/base.js:1255:39
    at new Promise (<anonymous>)
    at RunnableLambda._invoke (file:///Users/katharina/dev/reproduce-iitm-bug/node_modules/@langchain/core/dist/runnables/base.js:1250:10)
    at RunnableLambda._callWithConfig (file:///Users/katharina/dev/reproduce-iitm-bug/node_modules/@langchain/core/dist/runnables/base.js:166:25)
    at async test (file:///Users/katharina/dev/reproduce-iitm-bug/reproduce.mjs:6:9)

I've build a reproduction archive:

npm install
node --import ./register.mjs entry.mjs

reproduce.zip

I am happy to contribute a solution, but I would like to get some help and a direction before.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions