type UseStream cannot be imported from "@langchain/langgraph-sdk/react" anymore at v1 #367

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

Originally created by @rinarakaki on GitHub (Oct 17, 2025).

Checked other resources

  • I added a very descriptive title to this issue.
  • I searched the LangGraph.js documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangGraph.js rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangGraph (or the specific integration package).

Example Code

import type { UseStream } from "@langchain/langgraph-sdk/react";

Error Message and Stack Trace (if applicable)

N/A

Description

I need the type definition and used to import from @langchain/langgraph-sdk/react during alpha:

import type { UseStream } from "@langchain/langgraph-sdk/react";

But this doesn't work at v1.

System Info

N/A

Originally created by @rinarakaki on GitHub (Oct 17, 2025). ### Checked other resources - [x] I added a very descriptive title to this issue. - [x] I searched the LangGraph.js documentation with the integrated search. - [x] I used the GitHub search to find a similar question and didn't find it. - [x] I am sure that this is a bug in LangGraph.js rather than my code. - [x] The bug is not resolved by updating to the latest stable version of LangGraph (or the specific integration package). ### Example Code ```ts import type { UseStream } from "@langchain/langgraph-sdk/react"; ``` ### Error Message and Stack Trace (if applicable) N/A ### Description I need the type definition and used to import from @langchain/langgraph-sdk/react during alpha: ```ts import type { UseStream } from "@langchain/langgraph-sdk/react"; ``` But this doesn't work at v1. ### System Info N/A
yindo closed this issue 2026-02-15 18:16:15 -05:00
Author
Owner

@rinarakaki commented on GitHub (Oct 17, 2025):

Setting "moduleResolution": "bundler" in tsconfig.json solved this issue.

@rinarakaki commented on GitHub (Oct 17, 2025): Setting `"moduleResolution": "bundler"` in tsconfig.json solved this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#367