Open CrowderSoup opened 9 months ago
facing same issue with that dependency "@shopify/app": "^3.48.1", "@shopify/cli": "^3.48.1", "@shopify/ui-extensions": "2023.7.0", "@shopify/ui-extensions-react": "2023.7.0",
code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: my-node-app@1.0.0 npm ERR! Found: react@17.0.2 npm ERR! node_modules/react npm ERR! react@"^17.0.2" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@">=18.0.0" from ink@4.2.0 npm ERR! node_modules/ink npm ERR! peer ink@"4.2.0" from @shopify/app@3.49.3 npm ERR! node_modules/@shopify/app npm ERR! @shopify/app@"^3.45.1" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
Current Shopify CLI version: 3.48.0 node -v 20.3.0 npm -v 9.7.1
npm i @shopify/ui-extensions-react
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: my-node-app@1.0.0 npm ERR! Found: react@17.0.2 npm ERR! node_modules/react npm ERR! react@"^17.0.2" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@">=18.0.0" from ink@4.2.0 npm ERR! node_modules/ink npm ERR! peer ink@"4.2.0" from @shopify/app@3.49.3 npm ERR! node_modules/@shopify/app npm ERR! @shopify/app@"^3.48.1" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
You can use this to fix it at the moment because one of them was on 3.49.3 for me. "@shopify/app": "3.48.1" "@shopify/cli": "3.48.1"
@CrowderSoup Are you still seeing this issue?
I'm seeing this issue as well when trying to generate a post-purchase extension through the Shopify CLI.
Here's my locked @shopify
dependencies:
"@shopify/app@latest":
version: 3.52.0
"@shopify/cli@latest":
version: 3.52.0
resolution: "@shopify/cli@npm:3.52.0"
Running Node v18, React 18.
Command failed with exit code 1: npm install @shopify/post-purchase-ui-extensions-react@^0.13.2 --save-prod
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @verdict/my-app@2.0.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR! react@"18.2.0" from @verdict/my-app@2.0.0
npm ERR! apps/my-app
npm ERR! @verdict/my-app@2.0.0
npm ERR! node_modules/@verdict/my-app
npm ERR! workspace apps/core from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@">=17.0.0 <18.0.0" from @shopify/post-purchase-ui-extensions-react@0.13.4
npm ERR! node_modules/@shopify/post-purchase-ui-extensions-react
npm ERR! @shopify/post-purchase-ui-extensions-react@"^0.13.2" from @verdict/my-app
npm ERR! apps/core
npm ERR! @verdict/my-app@2.0.0
npm ERR! node_modules/@verdict/my-app
npm ERR! workspace apps/my-app from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /home/gitpod/.npm/_logs/2023-12-20T19_19_17_374Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: /home/gitpod/.npm/_logs/2023-12-20T19_19_17_374Z-debug-0.log
From what I can tell, the @shopify/post-purchase-ui-extensions-react
depends on a version of remote-react
that's dependent on React v17, not the latest v18.
I suspect that might be the issue?
This is still an issue. Can we do something to make the extension packages compatible with 18?
Yeah i'm having troubles too
Please list the package(s) involved in the issue, and include the version you are using
Describe the bug
After running
npm run shopify app generate extension -- -n "Checkout UI" --template checkout_ui
and thennpm run dev
I get:Which leads me to believe I need to install the
@shopify/ui-extensions-react/checkout
dependency. However, when I try to do so I get:Steps to reproduce the behavior:
@shopify/ui-extensions-react
withnpm i
Expected behavior