react-native-gifted-chat icon indicating copy to clipboard operation
react-native-gifted-chat copied to clipboard

Please update "use-memo-one" to "1.1.3" (react 18 support)

Open red-gecko27 opened this issue 1 year ago • 7 comments

Output:

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN   react@"18.1.0" from the root project
npm WARN   27 more (@expo/react-native-action-sheet, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.8.0 || ^17.0.0" from [email protected]
npm WARN node_modules/react-native-gifted-chat/node_modules/use-memo-one
npm WARN   use-memo-one@"1.1.2" from [email protected]
npm WARN   node_modules/react-native-gifted-chat
npm WARN 
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN   peer react@"^16.8.0 || ^17.0.0" from [email protected]
npm WARN   node_modules/react-native-gifted-chat/node_modules/use-memo-one
npm WARN     use-memo-one@"1.1.2" from [email protected]
npm WARN     node_modules/react-native-gifted-chat

red-gecko27 avatar Dec 07 '22 13:12 red-gecko27

I too am having this issue.

I saw another issue, #2200, that makes reference to use-memo-one being abandoned. However, it was just updated a few months ago to support React 18.

Posting so I can get updated if this gets fixed 😄

julian-hecker avatar Dec 10 '22 06:12 julian-hecker

I am also still encountering the same issue.

quinten-bosch avatar Feb 24 '23 09:02 quinten-bosch

any solution? 😭

albert-03 avatar Mar 15 '23 18:03 albert-03

same issue

hack-r avatar Apr 20 '23 02:04 hack-r

I'm experiencing the same issue

IsaacInsoll avatar Apr 21 '23 11:04 IsaacInsoll

npm uninstall use-memo-one react-native-gifted-chat npm install use-memo-one react-native-gifted-chat

The commands will auto install use-memo-one 1.1.3 to fit react 18.0. It works.

seekerliu avatar May 09 '23 19:05 seekerliu

if you use npm add this to your packages.json

"overrides": { "react-native-gifted-chat": { "use-memo-one": "1.1.3" } },

nadir avatar May 10 '23 18:05 nadir