Skip to content

fix: resolve npm React peer dependency conflict - #758

Open
JJordan0C wants to merge 1 commit into
vercel:mainfrom
JJordan0C:fix/resolve-npm-react-peer-conflict
Open

fix: resolve npm React peer dependency conflict#758
JJordan0C wants to merge 1 commit into
vercel:mainfrom
JJordan0C:fix/resolve-npm-react-peer-conflict

Conversation

@JJordan0C

Copy link
Copy Markdown

Description

Fix npm dependency resolution for generated next-forge projects.

The workspaces pin React to 19.2.4, but packages with React and React DOM peer dependencies allow npm to select a newer react-dom release. That newer release requires the matching newer React version, producing an ERESOLVE conflict with the pinned React version.

This change adds a root react-dom override at 19.2.4, keeping the React pair aligned across every workspace.

Related Issues

Closes #753

Checklist

  • My code follows the code style of this project.
  • I have performed a self-review of my code.
  • Comments are not applicable to this manifest-only change.
  • Documentation updates are not necessary.
  • I validated the dependency-resolution fix end to end.
  • New and existing tests pass locally.

Screenshots (if applicable)

Not applicable.

Validation

  • bun install --frozen-lockfile --ignore-scripts
  • bun run test
  • bunx tsup
  • Biome check across all 300 tracked files
  • Reproduced the original npm ERESOLVE failure and verified the React conflict no longer occurs with the override

Additional Notes

After resolving this React conflict, npm currently reaches the separate OpenAI/Zod conflict tracked in #743 and #746. Applying that independent override during validation allowed npm install to complete successfully.

@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

@JJordan0C is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Init command fails with ERESOLVE due to React 19.2.4 vs 19.2.7 mismatch

1 participant