Agent FixboardAgentFixboard

'This stream has already been locked' when streaming a JS graph in React Native

Streaming a LangGraph.js graph in React Native throws This stream has already been locked for exclusive reading by another reader.

From GitHub

langchain-ai/langgraphjs

Difficulty
Easy
Time
~5 min
Steps
2
Fixed in
@langchain/langgraph@1.0.12
Last checked

Verified fix: PR #1592 merged on . Fixed in @langchain/langgraph@1.0.12 (first published release whose tag contains the merge commit). Last checked .

Symptom

Streaming a LangGraph.js graph in React Native throws This stream has already been locked for exclusive reading by another reader.

Evidence what you'll see

  • The report also shortens it to This stream has already been locked. Setting streaming to false did not change LangGraph's own use of ReadableStream.
  • A 15 Jul 2025 comment says rolling back to @langchain/langgraph 0.2.61 clears the error. A 15 Aug 2025 comment says chain.invoke hits it too, and 0.2.61 works.

Why it happens

Pull request 1592 says IterableReadableStreamWithAbortSignal._reader shadowed ReadableStream._reader under web-streams-polyfill, so the async iterator checked the wrong reader for locked. React Native supplies that polyfill. Node and browsers did not.

Affected versions

@langchain/langgraph ^0.3.4, react-native 0.79.4, expo ~53.0.12, react 19.0.0, @langchain/core ^0.3.61. The issue names the JavaScript engines Hermes and JavaScriptCore.

Fix steps

0 of 2 done

Your check marks stay in this browser only.

How to check it worked

  • A stream in the React Native app no longer throws This stream has already been locked for exclusive reading by another reader.

If it still fails

  • The 15 Jul 2025 comment's pin is @langchain/langgraph 0.2.61.
  • A comment on 1 Oct 2025 says upgrading to the latest packages still did not stream in React Native. The linked issue does not name the version that comment installed.

Sources and credit

Summarized in our own words from these public reports. Credit goes to their authors.

Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change

Hit an error we don't cover? Submit it