Skip to content

fix(langgraph-js): bump @langchain/langgraph to 1.3.0 and pin [email protected] - #4665

Merged
marthakelly merged 4 commits into
mainfrom
fix/langgraph-js-pin-langchain
May 5, 2026
Merged

marthakelly merged 4 commits into
mainfrom
fix/langgraph-js-pin-langchain

Conversation

@marthakelly

Copy link
Copy Markdown
Contributor

Summary

  • The langgraph-js starter agent container has been crashing on startup with SyntaxError: The requested module '@langchain/langgraph/web' does not provide an export named 'STREAM_EVENTS_V3_MODES'
  • Root cause: @langchain/[email protected] (pulled transitively by npx @langchain/langgraph-cli) imports STREAM_EVENTS_V3_MODES from @langchain/langgraph/web, which only exists in @langchain/[email protected]+. The starter pinned langgraph to 1.2.9 in both package.json#overrides and agent/package.json#dependencies, so the symbol wasn't there at runtime
  • Bump @langchain/langgraph to 1.3.0 in both pin sites
  • Pin @langchain/[email protected] in the two npx invocations (agent/package.json dev script and docker/Dockerfile.agent CMD) so a future LangChain cross-package drift cannot silently re-break the starter

This is the same class of failure as PR #4132 in langgraph-typescript. Same starter family, same npx-pulls-latest fragility, different root mitigation.

Test plan

  • CI smoke test for langgraph-js passes (currently failing on main and on every open PR)
  • docker compose -f docker-compose.test.yml up boots the agent container without the STREAM_EVENTS_V3_MODES SyntaxError
  • npm install && npm run dev from examples/integrations/langgraph-js/ brings up the agent on port 8123

…[email protected]

@langchain/[email protected] (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) <[email protected]>
@vercel

vercel Bot commented May 5, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chat-with-your-data Ready Ready Preview, Comment May 5, 2026 1:03pm
docs Ready Ready Preview, Comment May 5, 2026 1:03pm
form-filling Ready Ready Preview, Comment May 5, 2026 1:03pm
research-canvas Ready Ready Preview, Comment May 5, 2026 1:03pm
travel Ready Ready Preview, Comment May 5, 2026 1:03pm

Request Review

@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

📣 Social Copy Generator

Generate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.

  • Generate social media copies

…h 1.3.0 peer

The previous commit bumped @langchain/langgraph to 1.3.0 but missed the
peer-dep ripple: langgraph 1.3.0 peers @langchain/core ^1.1.44. The agent
pinned core 1.1.41 and the root override pinned 1.0.1, both below the
required range, so npm install in the agent container failed with ERESOLVE.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…alidate-pins drift

Apply the same @langchain/core 1.1.44 and @langchain/langgraph 1.3.0 bumps
to the showcase copy that the Dojo received in the prior commits, so
validate-pins no longer flags drift between the two. Also pin
[email protected] in the dev scripts here for the same reason as the Dojo.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@marthakelly
marthakelly merged commit a93d682 into main May 5, 2026
33 checks passed
@marthakelly
marthakelly deleted the fix/langgraph-js-pin-langchain branch May 5, 2026 13:12
zeekay pushed a commit to Dream-AI-4444/CopilotKit that referenced this pull request Sep 11, 2026
…[email protected] (CopilotKit#4665)

## Summary
- The `langgraph-js` starter agent container has been crashing on
startup with `SyntaxError: The requested module
'@langchain/langgraph/web' does not provide an export named
'STREAM_EVENTS_V3_MODES'`
- Root cause: `@langchain/[email protected]` (pulled transitively by
`npx @langchain/langgraph-cli`) imports `STREAM_EVENTS_V3_MODES` from
`@langchain/langgraph/web`, which only exists in
`@langchain/[email protected]+`. The starter pinned langgraph to `1.2.9`
in both `package.json#overrides` and `agent/package.json#dependencies`,
so the symbol wasn't there at runtime
- Bump `@langchain/langgraph` to `1.3.0` in both pin sites
- Pin `@langchain/[email protected]` in the two npx invocations
(`agent/package.json` dev script and `docker/Dockerfile.agent` CMD) so a
future LangChain cross-package drift cannot silently re-break the
starter

This is the same class of failure as PR CopilotKit#4132 in `langgraph-typescript`.
Same starter family, same npx-pulls-latest fragility, different root
mitigation.

## Test plan
- [ ] CI smoke test for `langgraph-js` passes (currently failing on
`main` and on every open PR)
- [ ] `docker compose -f docker-compose.test.yml up` boots the agent
container without the `STREAM_EVENTS_V3_MODES` SyntaxError
- [ ] `npm install && npm run dev` from
`examples/integrations/langgraph-js/` brings up the agent on port 8123

This branch was successfully deployed

5 active deployments
Preview – research-canvas — 8e3169df Deployed May 5, 2026 by vercel[bot]
Preview – travel — 8e3169df Deployed May 5, 2026 by vercel[bot]
Preview – docs — 8e3169df Deployed May 5, 2026 by vercel[bot]
Preview – form-filling — 8e3169df Deployed May 5, 2026 by vercel[bot]
Preview – chat-with-your-data — 8e3169df Deployed May 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants