mirror of
https://github.com/langchain-ai/langgraphjs-api.git
synced 2026-07-19 13:25:54 -04:00
Issue with Langgraph CLI version 0.0.15 and above on Windows #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @KeenanFernandes2000 on GitHub (Mar 20, 2025).
Originally assigned to: @dqbd on GitHub.
I have been using the Langgraph CLI since my issue got resolved in version 0.0.10.
I decided to use the latest version of it being 0.0.17 and it throws an error that doesn't have anything to do with my graphs in particular. I manually tested each version backwards and found this error all the way back from version 0.0.15.
I am using version 0.0.14 which works perfectly, but wanted to bring this to the devs attention.
Error:
.../AppData/Local/npm-cache/_npx/67c725d45ea9c1da/node_modules/@langchain/langgraph-api/dist/stream.mjs:3
import { Command, Send, } from "@langchain/langgraph";
^^^^^^^
SyntaxError: The requested module '@langchain/langgraph' does not provide an export named 'Command'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:146:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:229:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)
Node.js v20.18.0
@benjamincburns commented on GitHub (Apr 28, 2025):
cc @dqbd
@benjamincburns commented on GitHub (Apr 28, 2025):
@KeenanFernandes2000 Thanks for reporting - can you please share a bit more detail about what steps you're taking to trigger the error that you're seeing? What CLI commands are you running? Does it behave this way on any project in your environment, or only specific ones? If specific ones, what is unique about those projects?
@KeenanFernandes2000 commented on GitHub (Apr 28, 2025):
I just run the npx command provided on the docs, I guess the same issue still persists in version 0.0.29
Just for reference it works when I use version 0.0.14
@benjamincburns commented on GitHub (May 8, 2025):
Hmm, it's a bit strange that 0.0.14 works but 0.0.17 doesn't. @dqbd would know better than me, but when I do a
git diffto find all changes in thelangchain-clidirectory between 0.0.14 and 0.0.17 I see no changes other than the version number.We unforunately don't have version tags, but I found the commit hashes - here's the full command:
@benjamincburns commented on GitHub (May 8, 2025):
@KeenanFernandes2000 given my previous comment, has anything changed on your end, e.g.
tsconfig.json, lockfile bump, etc? Does0.0.14still work today and0.0.17still fail?@dqbd commented on GitHub (May 20, 2025):
Hello @KeenanFernandes2000! We're now using the
@langchain/langgraphversion found in your project, so would recommend upgrading the version in your project