Skip to content

fix(deps): group React type packages in Renovate to prevent ERESOLVE#314

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-renovate-error
Draft

fix(deps): group React type packages in Renovate to prevent ERESOLVE#314
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-renovate-error

Conversation

Copilot AI commented May 30, 2026

Copy link
Copy Markdown
Contributor

Renovate runs failed with npm error ERESOLVE ... Found: @types/react@undefined because @types/react and @types/react-dom were bumped in separate PRs. Updating one without the other temporarily breaks the peer constraint peer @types/react@"^19.2.0" from @types/react-dom, halting installs.

Changes

  • renovate.json5: Added a packageRules group so react, react-dom, @types/react, and @types/react-dom are updated together atomically.
packageRules: [
  {
    groupName: "react monorepo",
    matchPackageNames: [
      "react",
      "react-dom",
      "@types/react",
      "@types/react-dom",
    ],
  },
],

This keeps the peer dependency satisfied at all times, so the dependency tree resolves cleanly on every Renovate update. No application code or current dependency versions were changed.

Copilot AI linked an issue May 30, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix npm dependency resolution error with types/react fix(deps): group React type packages in Renovate to prevent ERESOLVE May 30, 2026
Copilot AI requested a review from DevSecNinja May 30, 2026 08:46
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.

fix(deps): fix Renovate error

2 participants