Concrete
Rulesdependencies

concrete/dependencies/single-react

More than one copy of React is installed.

More than one copy of React is installed.

Graded by the dependencies stage of concrete check, in the tree venue. A violation reports this id and the file it failed at — see every rule and concrete check.

Reason

Two copies of React break hydration: the island's chunk and the page's runtime each get their own module registry, so hooks throw, context is empty and the island never attaches. The client half depends on there being exactly one — React is a peer of the framework and of everything around it, and a nested copy is almost always a dependency that pinned its own instead of taking yours.

Fix

Deduplicate the install, or align the dependency that pins its own copy to the version the workspace uses. The message names the package whose folder the second copy sits in.

Before and after

node_modules/
  react/                     19.2.0
  some-carousel/
    node_modules/react/      18.3.1   ← a second React, bundled into the island
$ npm dedupe
# or: align the dependency's peer range, then reinstall
$ npm install

On this page