nextjs - 💡(How to fix) Fix controller[kState].transformAlgorithm is not a function on Node 20.16+ with Next.js 15.5 / React 19 streaming SSR

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

[TypeError: controller[kState].transformAlgorithm is not a function] { digest: '4198189704' }

Fix Action

Workaround

Pinned the production image to node:22-alpine. SSR streaming works on Node 22.

Code Example

[TypeError: controller[kState].transformAlgorithm is not a function] { digest: '4198189704' }
RAW_BUFFERClick to expand / collapse

To Reproduce

Run a Next.js 15.5.x app under React 19 on Node 20.16+ (reproduced on node:20.20.2-alpine). Every SSR streaming request fails server-side with:

[TypeError: controller[kState].transformAlgorithm is not a function] { digest: '4198189704' }

The browser stays at the Loading shell until client hydration recovers.

Current vs. Expected behavior

Expected: SSR streaming completes and rendered HTML reaches the client before hydration.

Actual: SSR throws inside Node's TransformStream internals; only the suspense fallback ships.

Environment

  • next: 15.5.14
  • react: 19
  • Node: 20.20.2-alpine (Alpine Linux container)

Workaround

Pinned the production image to node:22-alpine. SSR streaming works on Node 22.

Why a new issue

Prior reports (#68319, #75994) are both closed and #68319 is locked. The bug still reproduces on Next.js 15.5 + Node 20.16+.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

nextjs - 💡(How to fix) Fix controller[kState].transformAlgorithm is not a function on Node 20.16+ with Next.js 15.5 / React 19 streaming SSR