Repository navigation
fix(langgraph-js): bump @langchain/langgraph to 1.3.0 and pin [email protected] - #4665
Merged
Merged
Conversation
…[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]>
marthakelly
requested review from
jpr5,
mme,
ranst91 and
tylerslaton
as code owners
May 5, 2026 12:51
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📣 Social Copy GeneratorGenerate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.
|
…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]>
tylerslaton
approved these changes
May 5, 2026
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
langgraph-jsstarter agent container has been crashing on startup withSyntaxError: The requested module '@langchain/langgraph/web' does not provide an export named 'STREAM_EVENTS_V3_MODES'@langchain/[email protected](pulled transitively bynpx @langchain/langgraph-cli) importsSTREAM_EVENTS_V3_MODESfrom@langchain/langgraph/web, which only exists in@langchain/[email protected]+. The starter pinned langgraph to1.2.9in bothpackage.json#overridesandagent/package.json#dependencies, so the symbol wasn't there at runtime@langchain/langgraphto1.3.0in both pin sites@langchain/[email protected]in the two npx invocations (agent/package.jsondev script anddocker/Dockerfile.agentCMD) so a future LangChain cross-package drift cannot silently re-break the starterThis 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
langgraph-jspasses (currently failing onmainand on every open PR)docker compose -f docker-compose.test.yml upboots the agent container without theSTREAM_EVENTS_V3_MODESSyntaxErrornpm install && npm run devfromexamples/integrations/langgraph-js/brings up the agent on port 8123