Skip to content
Discussion options

You must be logged in to vote

@miketen this is a bug in @shopify/cli, not in hydrogen or react-router. the CLI bundles a stale @shopify/cli-hydrogen that has a hardcoded version check:

// @shopify/cli-hydrogen/dist/commands/hydrogen/dev.js
const EXPECTED_VERSION = "7.9.2"

but hydrogen 2025.7.3 correctly declares react-router: ^7.12.0 as a peerDep. the CLI just hasn't caught up.

do NOT downgrade to 7.9.x because it has 5 known CVEs (including path traversal). 7.12.0 is the right version.

workaround until the CLI is fixed: add SHOPIFY_HYDROGEN_FLAG_DISABLE_WARNINGS=1 to suppress the version check, or pin the CLI:

# suppress the warning
SHOPIFY_HYDROGEN_FLAG_DISABLE_WARNINGS=1 npx shopify hydrogen dev

# or in package.js…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kdaviduik
Comment options

Answer selected by fredericoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants