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

Could not resolve dependency - @callstack/[email protected] #496

Open
Jammy1782 opened this issue Dec 4, 2022 · 7 comments
Open

Could not resolve dependency - @callstack/[email protected] #496

Jammy1782 opened this issue Dec 4, 2022 · 7 comments

Comments

@Jammy1782
Copy link

Issue Description

[stderr] npm WARN Could not resolve dependency:
[stderr] npm WARN peer react@"^16.3.0" from @callstack/[email protected]
[stderr] npm WARN node_modules/@callstack/react-theme-provider
[stderr] npm WARN @callstack/react-theme-provider@"3.0.3" from [email protected]
[stderr] npm WARN node_modules/react-native-country-picker-modal

Steps to Reproduce / Code Snippets

Building with Expo 45

Expected Results

Build should be successful

Additional Information

  • Nodejs version:
  • React version: 17.0.2
  • React Native version: 0.68.2
  • react-native-country-picker-modal version: ^2.0.0
  • Platform(s) (iOS, Android, web, or all?): iOS
  • TypeScript version:
@alexander01202
Copy link

Hello. I'm having the same error. Did you resolve this?

@aklevko
Copy link

aklevko commented Feb 17, 2023

The same problem

@ztamizzen
Copy link

I have kind of the same problem because I'm upgrading to Expo@46 and the React versions collide in a spectacular way.

I assume it's because the React version is fixed to 16 in modal-react-native-web.

A good rewrite could be to use the Modal that now exists in react-native-web.

npm WARN Could not resolve dependency:
npm WARN peer react@"16.x.x" from [email protected]
npm WARN node_modules/modal-react-native-web
npm WARN   modal-react-native-web@"0.2.0" from [email protected]
npm WARN   node_modules/react-native-country-picker-modal
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN   peer react@"16.x.x" from [email protected]
npm WARN   node_modules/modal-react-native-web
npm WARN     modal-react-native-web@"0.2.0" from [email protected]
npm WARN     node_modules/react-native-country-picker-modal
npm WARN ERESOLVE overriding peer dependency
npm WARN ERESOLVE overriding peer dependency

@Jammy1782
Copy link
Author

I don't exactly remember how I resolved this issue, but can you guys try out the specific versions of these 3 packages if you are using it. vividly remember these were the causes of it.
"react-native-web": "~0.18.7",
"react-native-reanimated": "~2.12.0",
"react-native-screens": "~3.18.0",

@ztamizzen
Copy link

Will try, thank you.

@eakenbor
Copy link

@ztamizzen did it work?

@ztamizzen
Copy link

Not really, I still get ERESOLVE overriding peer dependency on versions of React.
The dependency chain is way to intricate for me to fix things myself (time/budget/life...).

And I realize that yarn will probably fix this for me but I like a clean project that builds regardless of package manager.

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

5 participants