Skip to content

Commit

Permalink
fix(cli): warn users to use the JS cli for JS graphs (#3086)
Browse files Browse the repository at this point in the history
  • Loading branch information
dqbd authored Jan 18, 2025
2 parents ab00489 + e18f2b3 commit 0bdd27a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/cli/langgraph_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,11 @@ def dev(
) from None

config_json = langgraph_cli.config.validate_config_file(pathlib.Path(config))
if config_json.get("node_version"):
raise click.UsageError(
"In-mem server for JS graphs is not supported in this version of the LangGraph CLI. Please use `npx @langchain/langgraph-cli` instead."
) from None

cwd = os.getcwd()
sys.path.append(cwd)
dependencies = config_json.get("dependencies", [])
Expand Down

0 comments on commit 0bdd27a

Please sign in to comment.