-
Am I crazy or is └─┬ @shopify/cli-hydrogen@8.0.0
└─┬ @shopify/cli-kit@3.58.0
└── ink@4.4.1 Could not resolve dependency:
peer react@"^18.3.1" from react-reconciler@0.29.2
node_modules/ink/node_modules/react-reconciler
react-reconciler@"^0.29.0" from ink@4.4.1
node_modules/ink Upgrading react + react-dom gives an issue of having more than one copy of react in the same app invalid hook call warning. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Related #2055 |
Beta Was this translation helpful? Give feedback.
-
This was fixed in our latest release, |
Beta Was this translation helpful? Give feedback.
This was fixed in our latest release,
2024.4.2
. I think if you update using theh2 upgrade
command it should work. You might need to change yourpackage-lock.json
to ensure there's only 1 version of React installed as well if theh2 upgrade
command alone doesn't work. For that, you could trynpm remove react react-dom && npm install react react-dom
, that should get you the latest React which is compatible with latest Hydrogen dependencies.