-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: cli-kit React dependency version mismatch #3800
Comments
I also face this issue, how solved this issue ? |
Hi @nboliver-ventureweb @imrostom, is having 2 versions of react affecting your project? Do you have Shopify CLI installed globally in your system? |
Yes having two versions is affecting the project. I have used |
Related issue for using When creating Hydrogen project, react version 18.3.1 is install (we use "react": "^18.2.0"). This create a react version miss-match and the create script gets error out with "Warning: Invalid hook call" error. The new react version released 3 days ago likely cause all the issues to come out suddenly. |
So a simple installation using [email protected]
node_modules/@shopify/cli-kit/node_modules/react
react@"18.2.0" from @shopify/[email protected]
...
[email protected] peer
node_modules/react
peer react@">=18.0.0" from [email protected]
node_modules/ink
ink@"4.4.1" from @shopify/[email protected]
... This is even independent of what other packages like Hydrogen might require. Therefore, I think we need a patch release changing cli-kit to |
Fixed by #3813 with |
Please confirm that you have:
In which of these areas are you experiencing a problem?
Theme
Expected behavior
cli-kit and its deps should have matching React versions
Actual behavior
cli-kit has React pinned at v18.2.0
ink has it listed as ^18.0.0
This is causing ink to install v18.3.0 and cli-kit to install 18.2.0
Verbose output
Reproduction steps
npm list react
You might have more than one copy of React in the same app
errorOperating System
Mac OS
Shopify CLI version (check your project's
package.json
if you're not sure)3.59.1
Shell
No response
Node version (run
node -v
if you're not sure)No response
What language and version are you using in your application?
No response
The text was updated successfully, but these errors were encountered: