Shopify / hydrogen

Hydrogen lets you build faster headless storefronts in less time, on Shopify.
https://hydrogen.shop
MIT License
1.19k stars 241 forks source link

Warn about React version mismatch during project creation #2056

Closed frandiox closed 2 weeks ago

frandiox commented 2 weeks ago

The overrides unfortunately doesn't work with NPM because it ignores it when installing globally.

This PR shows a better warning when there is a React version mismatch and provides a workaround command that should allow creating new projects.

shopify[bot] commented 2 weeks ago
Oxygen deployed a preview of your fd-warn-react-mismatch branch. Details: Storefront Status Preview link Deployment details Last update (UTC)
custom-cart-method ✅ Successful (Logs) Preview deployment Inspect deployment April 30, 2024 7:13 AM
third-party-queries-caching ✅ Successful (Logs) Preview deployment Inspect deployment April 30, 2024 7:13 AM
subscriptions ✅ Successful (Logs) Preview deployment Inspect deployment April 30, 2024 7:13 AM
vite ✅ Successful (Logs) Preview deployment Inspect deployment April 30, 2024 7:13 AM
skeleton ✅ Successful (Logs) Preview deployment Inspect deployment April 30, 2024 7:13 AM
optimistic-cart-ui ✅ Successful (Logs) Preview deployment Inspect deployment April 30, 2024 7:13 AM

Learn more about Hydrogen's GitHub integration.

github-actions[bot] commented 2 weeks ago

We detected some changes in packages/*/package.json or packages/*/src, and there are no updates in the .changeset. If the changes are user-facing and should cause a version bump, run npm run changeset add to track your changes and include them in the next release CHANGELOG. If you are making simple updates to examples or documentation, you do not need to add a changeset.