react-native-otp-textinput icon indicating copy to clipboard operation
react-native-otp-textinput copied to clipboard

incorrect peer dependency

Open edwinpcode opened this issue 1 year ago • 10 comments

warning : [email protected]" has incorrect peer dependency "react-native@^0.72.4". this happen when using newer version of react-native

react-native : "0.73.3"

edwinpcode avatar Feb 05 '24 08:02 edwinpcode

+1

sampadanaik avatar Mar 01 '24 11:03 sampadanaik

+1

Reotech avatar Mar 09 '24 14:03 Reotech

+1

Felipe-OT avatar Mar 20 '24 00:03 Felipe-OT

+1 . Please do something.

dennisnjd avatar Mar 22 '24 12:03 dennisnjd

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

IsmailJanParacha avatar Apr 15 '24 07:04 IsmailJanParacha

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

Reotech avatar Apr 15 '24 07:04 Reotech

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

IsmailJanParacha avatar Apr 15 '24 07:04 IsmailJanParacha

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

Reotech avatar Apr 15 '24 07:04 Reotech

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

IsmailJanParacha avatar Apr 15 '24 08:04 IsmailJanParacha

Great! You're welcome @IsmailJanParacha

Reotech avatar Apr 15 '24 08:04 Reotech