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

react-native-windows as a dependency is causing installation issue with react native 0.73.6 #62

Closed
shettayyy opened this issue Aug 16, 2024 · 1 comment

Comments

@shettayyy
Copy link

Running -
npm install --save @dr.pogodin/react-native-fs --no-optional

causes -

npm WARN config optional Use `--omit=optional` to exclude optional dependencies, or
npm WARN config `--include=optional` to include them.
npm WARN config
npm WARN config     Default value does install optional deps unless otherwise omitted.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react-native
npm ERR!   react-native@"0.73.6" from the root project
npm ERR!   peer react-native@"*" from @dr.pogodin/[email protected]
npm ERR!   node_modules/@dr.pogodin/react-native-fs
npm ERR!     @dr.pogodin/react-native-fs@"*" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@"^0.74.0" from [email protected]
npm ERR! node_modules/react-native-windows
npm ERR!   peer react-native-windows@"*" from @dr.pogodin/[email protected]
npm ERR!   node_modules/@dr.pogodin/react-native-fs
npm ERR!     @dr.pogodin/react-native-fs@"*" 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! /Users/rahulshetty/.npm/_logs/2024-08-16T15_32_01_135Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/rahulshetty/.npm/_logs/2024-08-16T15_32_01_135Z-debug-0.log

I do not want to use --legacy-peer-deps as it would cause problems with my other dependencies.

@birdofpreyru
Copy link
Owner

Sorry, this library only officially supports the latest RN version, which is still 0.74 (pending an upgrade to 0.75, #60). Also, your issue is that react-native-windows strictly pins RN v0.74 as a peer dependency (I pin whatever RN version), perhaps you should suggest them to be less strict?

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

2 participants