Issue with documentation instructions #165

Closed
opened 2026-02-15 17:16:37 -05:00 by yindo · 13 comments
Owner

Originally created by @KeenanFernandes2000 on GitHub (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

Originally created by @KeenanFernandes2000 on GitHub (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
yindo closed this issue 2026-02-15 17:16:37 -05:00
Author
Owner

@AmoonPod commented on GitHub (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.

@AmoonPod commented on GitHub (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.
Author
Owner

@jacoblee93 commented on GitHub (Feb 3, 2025):

Checking this out now CC @dqbd!

@jacoblee93 commented on GitHub (Feb 3, 2025): Checking this out now CC @dqbd!
Author
Owner

@jacoblee93 commented on GitHub (Feb 3, 2025):

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

@jacoblee93 commented on GitHub (Feb 3, 2025): Still works for me on Mac, may be Windows specific?
Author
Owner

@SunnySunnyOMG commented on GitHub (Feb 3, 2025):

Saw the same issue
Windows 11, Node 20,

"@langchain/core": "0.3.37",
"@langchain/langgraph": "0.2.44",
"@langchain/langgraph-cli": "0.0.9",
@SunnySunnyOMG commented on GitHub (Feb 3, 2025): Saw the same issue Windows 11, Node 20, ``` "@langchain/core": "0.3.37", "@langchain/langgraph": "0.2.44", "@langchain/langgraph-cli": "0.0.9", ```
Author
Owner

@AmoonPod commented on GitHub (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.

@AmoonPod commented on GitHub (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.
Author
Owner

@dqbd commented on GitHub (Feb 4, 2025):

Hello! Looking into the issue!

@dqbd commented on GitHub (Feb 4, 2025): Hello! Looking into the issue!
Author
Owner

@AndryHTC commented on GitHub (Feb 4, 2025):

Hello! Looking into the issue!

Thanks mate :)

@AndryHTC commented on GitHub (Feb 4, 2025): > Hello! Looking into the issue! Thanks mate :)
Author
Owner

@dqbd commented on GitHub (Feb 4, 2025):

Hello! Released @langchain/langgraph-cli@0.0.10 with Windows fixes! LMK if the issue still persists!

@dqbd commented on GitHub (Feb 4, 2025): Hello! Released `@langchain/langgraph-cli@0.0.10` with Windows fixes! LMK if the issue still persists!
Author
Owner

@KeenanFernandes2000 commented on GitHub (Feb 5, 2025):

Image

Image

Yes, everything is running based on the documentation provided

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

@KeenanFernandes2000 commented on GitHub (Feb 5, 2025): ![Image](https://github.com/user-attachments/assets/958d7f5e-de1b-4942-b4fd-61901fcd7891) ![Image](https://github.com/user-attachments/assets/b5a1a5fa-9ecd-4a71-bd29-3b6bc8e9741f) Yes, everything is running based on the documentation provided Thank you @dqbd & @jacoblee93, y'all lifesavers.
Author
Owner

@AmoonPod commented on GitHub (Feb 5, 2025):

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

@AmoonPod commented on GitHub (Feb 5, 2025): I confirm this is fixed with 0.0.10 cli version. Thank you!
Author
Owner

@AI3LabsX commented on GitHub (Feb 21, 2025):

For some reason I have similar issue:
Error: Failed to extract schema for "agent": TypeError: Cannot read properties of undefined (reading 'flags')
at getGraphSchema (
/server/node_modules/@langchain/langgraph-cli/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:68:19)
a

@AI3LabsX commented on GitHub (Feb 21, 2025): For some reason I have similar issue: Error: Failed to extract schema for "agent": TypeError: Cannot read properties of undefined (reading 'flags') at getGraphSchema ( /server/node_modules/@langchain/langgraph-cli/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:68:19) a
Author
Owner

@benjamincburns commented on GitHub (Feb 22, 2025):

For some reason I have similar issue: Error: Failed to extract schema for "agent": TypeError: Cannot read properties of undefined (reading 'flags') at getGraphSchema (file:///C:/Users/RihaR/OneDrive/Desktop/code/genie-mas/server/node_modules/@langchain/langgraph-cli/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:68:19) a

@AI3LabsX I'd recommend opening a new issue for this.

@benjamincburns commented on GitHub (Feb 22, 2025): > For some reason I have similar issue: Error: Failed to extract schema for "agent": TypeError: Cannot read properties of undefined (reading 'flags') at getGraphSchema (file:///C:/Users/RihaR/OneDrive/Desktop/code/genie-mas/server/node_modules/@langchain/langgraph-cli/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:68:19) a @AI3LabsX I'd recommend opening a new issue for this.
Author
Owner

@Synthally commented on GitHub (Feb 22, 2025):

I am also facing similar error
Error: Failed to extract schema for "cia": TypeError: Cannot read properties of undefined (reading 'length')
at getGraphSchema (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:68:19)
at async file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:106:25
at async dispatch (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/compose.js:22:17)
at async file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/validator/validator.js:81:5
at async dispatch (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/compose.js:22:17)
at async file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/validator/validator.js:81:5
at async dispatch (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/compose.js:22:17)
at async logger2 (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/middleware/logger/index.js:38:5)
at async dispatch (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/compose.js:22:17)
at async cors2 (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/middleware/cors/index.js:74:5)
at async dispatch (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/compose.js:22:17)
at async file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/@langchain/langgraph-api/dist/server.mjs:26:5
at async dispatch (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/compose.js:22:17)
at async file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/hono-base.js:195:25
at async responseViaResponseObject (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/@hono/node-server/dist/index.mjs:351:13)

@Synthally commented on GitHub (Feb 22, 2025): I am also facing similar error Error: Failed to extract schema for "cia": TypeError: Cannot read properties of undefined (reading 'length') at getGraphSchema (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/@langchain/langgraph-api/dist/graph/load.mjs:68:19) at async file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/@langchain/langgraph-api/dist/api/assistants.mjs:106:25 at async dispatch (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/compose.js:22:17) at async file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/validator/validator.js:81:5 at async dispatch (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/compose.js:22:17) at async file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/validator/validator.js:81:5 at async dispatch (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/compose.js:22:17) at async logger2 (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/middleware/logger/index.js:38:5) at async dispatch (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/compose.js:22:17) at async cors2 (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/middleware/cors/index.js:74:5) at async dispatch (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/compose.js:22:17) at async file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/@langchain/langgraph-api/dist/server.mjs:26:5 at async dispatch (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/compose.js:22:17) at async file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/hono/dist/hono-base.js:195:25 at async responseViaResponseObject (file:///Users/kenyally/.nvm/versions/node/v22.8.0/lib/node_modules/@langchain/langgraph-cli/node_modules/@hono/node-server/dist/index.mjs:351:13)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#165