You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The shopify hydrogen dev command displays a misleading version mismatch warning when React Router 7.12.0 is installed, even though Hydrogen officially updated to 7.12.0 in the skeleton@2025.7.1 release.
Current behavior
Running shopify hydrogen dev with @shopify/cli@3.90.0 (latest) displays:
╭─ warning ────────────────────────────────────────────────────────────╮
│ │
│ React Router version mismatch detected │
│ │
│ Hydrogen requires React Router 7.9.x for proper functionality. │
│ │
│ Version mismatches found: │
│ • react-router: installed 7.12.0, expected 7.9.2 │
│ • @react-router/dev: installed 7.12.0, expected 7.9.2 │
│ • @react-router/fs-routes: installed 7.12.0, expected 7.9.2 │
│ │
│ To fix this issue, run: │
│ npm install react-router@7.9.2 │
│ npm install -D @react-router/dev@7.9.2 @react-router/fs-routes@7.9.2 │
│ │
│ This may cause issues with routing, code splitting, and other │
│ features. │
╰──────────────────────────────────────────────────────────────────────╯
Expected behavior
No warning should be displayed when React Router 7.12.0 is installed, since this is the version Hydrogen officially supports.
Root cause
In packages/cli/src/lib/react-router-version-check.ts, the EXPECTED_VERSION constant has been updated to "7.12.0" on the main branch. However, this fix has not been released in any @shopify/cli version yet. Both @shopify/cli@3.89.0 (Homebrew) and @shopify/cli@3.90.0 (npm, latest) still ship with EXPECTED_VERSION = "7.9.2" in their bundled dist/index.js.
Why this matters
Security: React Router 7.9.2 has multiple known CVEs that are fixed in 7.12.0:
The skeleton template on main pins React Router at 7.12.0
Yet the released CLI tells users 7.12.0 is wrong
Environment
@shopify/cli: 3.90.0 (latest as of Feb 2026)
@shopify/hydrogen: 2025.7.3
react-router: 7.12.0
Node: 22.x
OS: macOS
Steps to reproduce
Create or use a Hydrogen project with React Router 7.12.0 (matching skeleton@2025.7.1)
Run shopify hydrogen dev
Observe the incorrect version mismatch warning
Suggested fix
Release a CLI version that includes the already-merged fix from main where EXPECTED_VERSION is set to "7.12.0" in packages/cli/src/lib/react-router-version-check.ts.
Description
The
shopify hydrogen devcommand displays a misleading version mismatch warning when React Router 7.12.0 is installed, even though Hydrogen officially updated to 7.12.0 in theskeleton@2025.7.1release.Current behavior
Running
shopify hydrogen devwith@shopify/cli@3.90.0(latest) displays:Expected behavior
No warning should be displayed when React Router 7.12.0 is installed, since this is the version Hydrogen officially supports.
Root cause
In
packages/cli/src/lib/react-router-version-check.ts, theEXPECTED_VERSIONconstant has been updated to"7.12.0"on themainbranch. However, this fix has not been released in any@shopify/cliversion yet. Both@shopify/cli@3.89.0(Homebrew) and@shopify/cli@3.90.0(npm, latest) still ship withEXPECTED_VERSION = "7.9.2"in their bundleddist/index.js.Why this matters
Security: React Router 7.9.2 has multiple known CVEs that are fixed in 7.12.0:
Misleading guidance: The CLI actively tells developers to downgrade to a vulnerable version (7.9.2), which is the opposite of what they should do.
Inconsistency with official releases:
skeleton@2025.7.1(release notes) explicitly states: "Update React Router to 7.12.0 with stabilized future flags"@shopify/cli-hydrogen@11.1.6changelog references PR chore(deps): bump RR7 to v7.12.0 #3346 which bumped RR7 to 7.12.0mainpins React Router at7.12.0Environment
@shopify/cli: 3.90.0 (latest as of Feb 2026)@shopify/hydrogen: 2025.7.3react-router: 7.12.0Steps to reproduce
skeleton@2025.7.1)shopify hydrogen devSuggested fix
Release a CLI version that includes the already-merged fix from
mainwhereEXPECTED_VERSIONis set to"7.12.0"inpackages/cli/src/lib/react-router-version-check.ts.