Skip to content

Upgrading CLI loses track of hydrogen project #2133

Closed Answered by frandiox
dvnrsn asked this question in Help
Discussion options

You must be logged in to vote

The h2 upgrade command should update your dependency to @shopify/[email protected] for the 2024.4.2 release (source).

Did you change the ^3.58.0 → ^3.60.1 versions manually? If so, please choose 3.59.2 for now.

Also, make sure your @shopify/cli-hydrogen dependency is listed in dependencies and not in devDependencies. There has been an inadvertent change in the main @shopify/cli and it is now a requirement to have it there -- I think this should be fixed if you use the h2 upgrade command as well instead of updating manually.


Also, we are making changes so that dependencies around the CLI are simpler and don't create this kind of issue. More soon 🤞

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dvnrsn
Comment options

@frandiox
Comment options

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