Skip to content

Commit a8a006e

Browse files
marthakellyclaude
andcommitted
fix(langgraph-js): bump @langchain/langgraph to 1.3.0 and pin langgraph-cli@1.2.1
@langchain/langgraph-api@1.2.1 (pulled transitively by langgraph-cli) imports STREAM_EVENTS_V3_MODES from @langchain/langgraph/web, which only exists in 1.3.0. The starter's overrides + agent dep were pinning langgraph to 1.2.9, causing the agent container to crash on startup with a SyntaxError. Bump the override and the direct pin to 1.3.0, and pin @langchain/langgraph-cli in the npx invocations so future cross-package drift in the LangChain ecosystem cannot silently re-break this starter. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 684ba7b commit a8a006e

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

examples/integrations/langgraph-js/agent/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
"type": "module",
99
"main": "index.js",
1010
"scripts": {
11-
"dev": "npx @langchain/langgraph-cli dev --port 8123 --no-browser"
11+
"dev": "npx @langchain/langgraph-cli@1.2.1 dev --port 8123 --no-browser"
1212
},
1313
"dependencies": {
1414
"@copilotkit/sdk-js": "1.56.5",
1515
"@langchain/core": "1.1.41",
16-
"@langchain/langgraph": "1.2.9",
16+
"@langchain/langgraph": "1.3.0",
1717
"@langchain/openai": "1.4.4",
1818
"langchain": "1.3.4"
1919
},

examples/integrations/langgraph-js/docker/Dockerfile.agent

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ RUN npm install
1515

1616
EXPOSE 8123
1717

18-
CMD ["npx", "@langchain/langgraph-cli", "dev", "--host", "0.0.0.0", "--port", "8123", "--no-browser"]
18+
CMD ["npx", "@langchain/langgraph-cli@1.2.1", "dev", "--host", "0.0.0.0", "--port", "8123", "--no-browser"]

examples/integrations/langgraph-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
},
4848
"overrides": {
4949
"@langchain/core": "1.0.1",
50-
"@langchain/langgraph": "1.2.9"
50+
"@langchain/langgraph": "1.3.0"
5151
},
5252
"engines": {
5353
"node": ">=18.0.0"

0 commit comments

Comments
 (0)