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

Issue with documentation instructions #839

Closed
KeenanFernandes2000 opened this issue Feb 3, 2025 · 10 comments
Closed

Issue with documentation instructions #839

KeenanFernandes2000 opened this issue Feb 3, 2025 · 10 comments

Comments

@KeenanFernandes2000
Copy link

KeenanFernandes2000 commented Feb 3, 2025

I am following the instructions on https://langchain-ai.github.io/langgraphjs/tutorials/langgraph-platform/local-server/ so that I can use the cloud version of the langgraph studio to visualize my graphs and debug them. However once I reach to the " Launch LangGraph Server " stage, it keeps throwing the following error

Error: Failed to extract schema for "agent": TypeError: Cannot read properties of undefined (reading 'length')
at getGraphSchema (file:///C:/Users/usr/AppData/Local/npm-cache/_npx/8b41b8d3955bcda6/node_modules/@langchain/langgraph-cli/dist/graph/load.mjs:68:19)
at async file:///C:/Users/usr/AppData/Local/npm-cache/_npx/8b41b8d3955bcda6/node_modules/@langchain/langgraph-cli/dist/api/assistants.mjs:86:25
at async dispatch (file:///C:/Users/usr/AppData/Local/npm-cache/_npx/8b41b8d3955bcda6/node_modules/hono/dist/compose.js:30:17)
at async logger2 (file:///C:/Users/usr/AppData/Local/npm-cache/_npx/8b41b8d3955bcda6/node_modules/hono/dist/middleware/logger/index.js:39:5)
at async dispatch (file:///C:/Users/usr/AppData/Local/npm-cache/_npx/8b41b8d3955bcda6/node_modules/hono/dist/compose.js:30:17)
at async cors2 (file:///C:/Users/usr/AppData/Local/npm-cache/_npx/8b41b8d3955bcda6/node_modules/hono/dist/middleware/cors/index.js:74:5)
at async dispatch (file:///C:/Users/usr/AppData/Local/npm-cache/_npx/8b41b8d3955bcda6/node_modules/hono/dist/compose.js:30:17)
at async file:///C:/Users/usr/AppData/Local/npm-cache/_npx/8b41b8d3955bcda6/node_modules/@langchain/langgraph-cli/dist/server.mjs:26:5
at async dispatch (file:///C:/Users/usr/AppData/Local/npm-cache/_npx/8b41b8d3955bcda6/node_modules/hono/dist/compose.js:30:17)
at async file:///C:/Users/usr/AppData/Local/npm-cache/_npx/8b41b8d3955bcda6/node_modules/hono/dist/hono-base.js:195:25

not sure what else to change since I use the pre-defined graphs when setting up the project

I am using window 11, node js v20 and langgraph js

@AmoonPod
Copy link

AmoonPod commented Feb 3, 2025

I'm getting the same error.
I'm using windows 11, node js v22.12.0 and langgraph js v0.2.44.

@jacoblee93
Copy link
Collaborator

Checking this out now CC @dqbd!

@jacoblee93
Copy link
Collaborator

Still works for me on Mac, may be Windows specific?

@SunnySunnyOMG
Copy link

Saw the same issue
Windows 11, Node 20,

"@langchain/core": "0.3.37",
"@langchain/langgraph": "0.2.44",
"@langchain/langgraph-cli": "0.0.9",

@AmoonPod
Copy link

AmoonPod commented Feb 4, 2025

Hi @jacoblee93, I've tested this on macOS with the same configurations, including the same versions of Node.js, npm, and all relevant packages, and it works as expected. However, the issue persists on Windows.

It seems like this might be a Windows-specific problem.

@dqbd
Copy link
Contributor

dqbd commented Feb 4, 2025

Hello! Looking into the issue!

@AndryHTC
Copy link

AndryHTC commented Feb 4, 2025

Hello! Looking into the issue!

Thanks mate :)

@dqbd
Copy link
Contributor

dqbd commented Feb 5, 2025

Hello! Released @langchain/[email protected] with Windows fixes! LMK if the issue still persists!

@dqbd dqbd closed this as completed Feb 5, 2025
@KeenanFernandes2000
Copy link
Author

Image

Image

Yes, everything is running based on the documentation provided

Thank you @dqbd & @jacoblee93, y'all lifesavers.

@AmoonPod
Copy link

AmoonPod commented Feb 5, 2025

I confirm this is fixed with 0.0.10 cli version. Thank you!

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

6 participants