Skip to content
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

Langgraph server doesn't work well with some typesript configurations #964

Open
itachiRedhair opened this issue Mar 6, 2025 · 0 comments

Comments

@itachiRedhair
Copy link

In my project built using NestJS, we have some code that imports moment like this:

import * as moment from 'moment'

When I try to use the langgraph server importing a graph, and this graph has further dependency on the existing code as above, it throws following error:

TypeError: moment is not a function

Is there any recommendation on how to make langgraph server and our nest server code work with the same code? This is just one example, it fails with many other imports that are like this.

Also, is there a way to use langgraph api server with an existing expressjs or nest server. It would be nice to import the langgraph routes and make it part of existing express based server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant