Peer dependency warning with @langchain/core@1.0.0-alpha versions #356

Closed
opened 2026-02-15 18:16:09 -05:00 by yindo · 1 comment
Owner

Originally created by @jfernandez on GitHub (Sep 13, 2025).

Description

When using the 1.0.0-alpha versions of LangChain packages as recommended in issue #1602, there's a peer dependency warning during compilation:

Warning The following peer dependency issues were found:
└─┬ @langchain/langgraph@1.0.0-alpha.1
  └─┬ @langchain/langgraph-sdk@0.1.3
    └── peer @langchain/core@>=0.2.31 <0.4.0: resolved to 1.0.0-alpha.3

Environment

  • @langchain/langgraph@next (resolves to 1.0.0-alpha.1)
  • @langchain/core@next (resolves to 1.0.0-alpha.3)
  • @langchain/langgraph-sdk@0.1.3 (transitive dependency)

Root Cause

The @langchain/langgraph-sdk@0.1.3 package has peer dependency constraints:

"@langchain/core": ">=0.2.31 <0.4.0"

But the alpha versions use @langchain/core@1.0.0-alpha.3, which is outside this range.

Expected Behavior

No peer dependency warnings when using the recommended alpha versions.

Current Workaround

The warning is harmless and can be ignored, but it would be better to have clean dependency resolution.

Solution

Update @langchain/langgraph-sdk peer dependencies to accept the 1.0.0-alpha versions:

"@langchain/core": ">=0.2.31 <0.4.0 || ^1.0.0-alpha"

Additional Note

Issue #1602 recommends using @langchain/langgraph@alpha, but this dist-tag doesn't exist - only @next is available. The other packages (@langchain/core, langchain) have both alpha and next tags.

Originally created by @jfernandez on GitHub (Sep 13, 2025). ## Description When using the 1.0.0-alpha versions of LangChain packages as recommended in issue #1602, there's a peer dependency warning during compilation: ``` Warning The following peer dependency issues were found: └─┬ @langchain/langgraph@1.0.0-alpha.1 └─┬ @langchain/langgraph-sdk@0.1.3 └── peer @langchain/core@>=0.2.31 <0.4.0: resolved to 1.0.0-alpha.3 ``` ## Environment - `@langchain/langgraph@next` (resolves to 1.0.0-alpha.1) - `@langchain/core@next` (resolves to 1.0.0-alpha.3) - `@langchain/langgraph-sdk@0.1.3` (transitive dependency) ## Root Cause The `@langchain/langgraph-sdk@0.1.3` package has peer dependency constraints: ```json "@langchain/core": ">=0.2.31 <0.4.0" ``` But the alpha versions use `@langchain/core@1.0.0-alpha.3`, which is outside this range. ## Expected Behavior No peer dependency warnings when using the recommended alpha versions. ## Current Workaround The warning is harmless and can be ignored, but it would be better to have clean dependency resolution. ## Solution Update `@langchain/langgraph-sdk` peer dependencies to accept the 1.0.0-alpha versions: ```json "@langchain/core": ">=0.2.31 <0.4.0 || ^1.0.0-alpha" ``` ## Additional Note Issue #1602 recommends using `@langchain/langgraph@alpha`, but this dist-tag doesn't exist - only `@next` is available. The other packages (`@langchain/core`, `langchain`) have both `alpha` and `next` tags.
yindo closed this issue 2026-02-15 18:16:09 -05:00
Author
Owner

@dqbd commented on GitHub (Sep 15, 2025):

Thank you! Will fix with next SDK release

@dqbd commented on GitHub (Sep 15, 2025): Thank you! Will fix with next SDK release
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#356