Skip to content

test(e2e): Fix peer dependency issues in hydrogen-react-router-7 - #25400

Merged
mydea merged 2 commits into
developfrom
test/e2e-hydrogen-react-router-versions
Oct 15, 2026
Merged

mydea merged 2 commits into
developfrom
test/e2e-hydrogen-react-router-versions

Conversation

@mydea

@mydea mydea commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Fixes every peer dependency issue in hydrogen-react-router-7. The app now installs cleanly with strict-peer-dependencies.

  • React Router versions: react-router was on 7.18.2, while @react-router/dev, @react-router/fs-routes and react-router-dom were still on 7.13.0. The app therefore resolved @react-router/node 7.13.0, below the >=7.15.0 that @sentry/react-router requires as a peer since feat(react-router)!: Raise minimum supported React Router version to >= 7.15 #22481, so it was testing a version the SDK doesn't support. All React Router packages are now on 7.16.0.
  • Hydrogen: @shopify/hydrogen@2025.5.0 pinned react-router@7.6.0, and @shopify/remix-oxygen pinned ~7.16.0. Hydrogen 2026.4.7 (the latest 2026.4 release) requires ~7.16.0, which is why all React Router packages are on 7.16.0. The newer 2026.10 line changes its peers completely, so I didn't move to it. react and react-dom move to ^18.3.1, as Hydrogen requires.
  • @shopify/remix-oxygen: it's deprecated, so the app now imports createRequestHandler and getStorefrontHeaders from @shopify/hydrogen/oxygen, and the React Router types and session helpers from react-router. It was also the cause of a type error with the newer Hydrogen.
  • Unused dependencies: @tailwindcss/vite (an alpha requiring Vite 5) and the ESLint packages weren't used at all and had outdated peers, so they're removed along with the unused lint script.

🤖 Generated with Claude Code

mydea and others added 2 commits October 15, 2026 14:33
`react-router` was on 7.18.2 while `@react-router/dev`, `@react-router/fs-routes`
and `react-router-dom` stayed on 7.13.0. The app therefore resolved
`@react-router/node` 7.13.0, below the `>=7.15.0` that `@sentry/react-router`
requires as a peer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`@shopify/hydrogen@2025.5.0` and the deprecated `@shopify/remix-oxygen` pinned
React Router versions that don't match the app's. Hydrogen 2026.4.7 and its
`@shopify/hydrogen/oxygen` entry point replace both, with every React Router
package on 7.16.0, the version they require. The unused Tailwind and ESLint
dependencies had outdated peers and are dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mydea mydea changed the title test(e2e): Align React Router packages in hydrogen-react-router-7 test(e2e): Fix peer dependency issues in hydrogen-react-router-7 Oct 15, 2026
@mydea
mydea marked this pull request as ready for review October 15, 2026 12:50
@mydea
mydea requested review from chargome and s1gr1d October 15, 2026 12:50
@mydea
mydea merged commit d3b2231 into develop Oct 15, 2026
41 of 42 checks passed
@mydea
mydea deleted the test/e2e-hydrogen-react-router-versions branch October 15, 2026 14:17
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.

2 participants