Skip to content

Installing radix-ui-react-native-icons@1.1.0 once the react-native version is above then 0.72.0 #3

Description

@zozobalogh0817

Once I tried to install the package through NPM to our repository I'm getting the following error

npm ERR! Found: react-native@0.73.5
npm ERR! node_modules/react-native
npm ERR!   react-native@"0.73.5" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@"^0.72.0" from radix-ui-react-native-icons@1.1.0
npm ERR! node_modules/radix-ui-react-native-icons
npm ERR!   radix-ui-react-native-icons@"*" 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.

Note: I've installed using npm i radix-ui-react-native-icons --force and technically the package working with the latest react-native package but it not suitable to run any future install with the --force option

Activity

Eronred commented on Mar 5, 2024

@Eronred
Owner

Hello there! Thank you for bringing up the issue. I have tried various versions of React Native and it wasn't until version 0.73... that I experienced the same error as you did. Although I don't have the time to fix it yet, I do have a workaround that should work for now.

Simply install the package to an empty folder and then add it to your node modules. This is going to work without any issues, even with version 0.73.5.

image

I will solve it soon.

self-assigned this
on Mar 5, 2024

zozobalogh0817 commented on Mar 7, 2024

@zozobalogh0817
Author

Thanks @Eronred for the reply

I've also done this in our repo, so now it's working fine, although I would be more happy to use it from your NPM package

So take the time needed and please let me know once you've been able to fix this issue.

Wishing the best,
Zoltán

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions