Skip to content

Commit

Permalink
fix(cli): warn users to use the JS cli for JS graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
dqbd authored and nfcampos committed Jan 18, 2025
1 parent a11f9b3 commit e18f2b3
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 e18f2b3

Please sign in to comment.