Skip to content
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

Unable to resolve dependency tree #1

Closed
Snugug opened this issue Nov 22, 2022 · 1 comment
Closed

Unable to resolve dependency tree #1

Snugug opened this issue Nov 22, 2022 · 1 comment

Comments

@Snugug
Copy link

Snugug commented Nov 22, 2022

On NPM 8.19.2, installing the v3 of this branch with a basic Sanity setup (fresh sanity init), I get the following error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: navy-cattle@1.0.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"^17.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^18" from @sanity/ui@1.0.0-beta.32
npm ERR! node_modules/@sanity/ui
npm ERR!   peer @sanity/ui@"1.0.0-beta.32" from sanity-plugin-internationalized-array@1.2.0
npm ERR!   node_modules/sanity-plugin-internationalized-array
npm ERR!     sanity-plugin-internationalized-array@"1.2.0" 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! See ~/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     ~/.npm/_logs/2022-11-22T19_27_29_342Z-debug-0.log

Re-running with --legacy-peer-deps works, but it looks like there are two different versions of React now expected and this results in weird errors with alt package managers like pnpm

@Snugug
Copy link
Author

Snugug commented Nov 22, 2022

Didn't realize this was trying to be installed off of Sanity 2 codebase

@Snugug Snugug closed this as completed Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant