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

incorrect peer dependency #52

Open
edwinpcode opened this issue Feb 5, 2024 · 10 comments
Open

incorrect peer dependency #52

edwinpcode opened this issue Feb 5, 2024 · 10 comments

Comments

@edwinpcode
Copy link

warning : react-native-otp-textinput@1.1.5" has incorrect peer dependency "react-native@^0.72.4".
this happen when using newer version of react-native

react-native : "0.73.3"

@sampadanaik
Copy link

+1

2 similar comments
@Reotech
Copy link

Reotech commented Mar 9, 2024

+1

@Felipe-OT
Copy link

+1

@dennisnjd
Copy link

+1 . Please do something.

@IsmailJanParacha
Copy link

IsmailJanParacha commented Apr 15, 2024

Did any fix this issue? Temporary we can ignore this error by using the force command
@naveenvignesh5

@Reotech
Copy link

Reotech commented Apr 15, 2024

Yeah I fixed mine by editting the version to match the required version in package-lock.json

@IsmailJanParacha
Copy link

@Reotech, It would be appreciated if you share the compatible version

@Reotech
Copy link

Reotech commented Apr 15, 2024

Okay

"node_modules/react-native-otp-textinput": {
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/react-native-otp-textinput/-/react-native-otp-textinput-1.1.5.tgz",
"dependencies": {
"react": "^18.2.0"
},
"peerDependencies": {
"react-native": "^0.73.4"
}
} so this is an example of mine, note the react-native version .
Make sure the version of react-native in the peerDependencies matches the react-native version of your project

@IsmailJanParacha
Copy link

Thank you @Reotech it worked. Basically, the react native version was not matching in peer dependency so I matched it and then it worked

@Reotech
Copy link

Reotech commented Apr 15, 2024

Great!
You're welcome @IsmailJanParacha

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

6 participants