facebook/react · critical · Error

Use react-server-dom-turbopack/client instead.

Error message

Use react-server-dom-turbopack/client instead.

What it means

The root entry of react-server-dom-turbopack contains only this throw: the package deliberately ships no default implementation. The Flight runtime is split into environment-specific entries (client, server) and every consumer must deep-import the entry it needs.

Source

Thrown at packages/react-server-dom-turbopack/index.js:10

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 */

throw new Error('Use react-server-dom-turbopack/client instead.');

View on GitHub (pinned to eafeac097b)

Solutions

  1. Change the import to react-server-dom-turbopack/client
  2. For server rendering use the server entry (e.g. react-server-dom-turbopack/server) under the react-server condition
  3. Search the codebase for the bare specifier and add an import lint rule banning it

Example fix

// before
import {createFromFetch} from 'react-server-dom-turbopack';

// after
import {createFromFetch} from 'react-server-dom-turbopack/client';
Defensive patterns

Strategy: validation

Validate before calling

// Always use a subpath entry; assert it if resolving dynamically:
const spec = 'react-server-dom-turbopack/client';
if (!spec.includes('/')) {
  throw new Error('Deep-import a specific react-server-dom-turbopack entry');
}
const {createFromFetch} = require(spec);

Prevention

When it happens

Trigger: import ... from 'react-server-dom-turbopack' (the bare package specifier), most often in code ported from react-server-dom-webpack where a root entry previously existed, or inserted by editor autocomplete.

Common situations: Copying RSC examples written for the webpack integration; upgrading scaffolds that assumed a root export; shared utilities importing the package generically.

Related errors


AI-assisted analysis of facebook/react@eafeac097b (2026-08-21). Data as JSON: /api/errors/06f08a2d7768b159. Report an issue: GitHub.