question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v1 incompatible with React 17

See original GitHub issue

Issue Description

Seems like the only solution is to stop using use-memo-one? They have an open issue about this (https://github.com/alexreardon/use-memo-one/issues/27) but no movement on it for over a year.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: react@17.0.1
npm ERR! node_modules/react
npm ERR!   react@"17.0.1" from the root project
npm ERR!   peer react@">=16.3.0" from @expo/react-native-action-sheet@3.13.0
npm ERR!   node_modules/@expo/react-native-action-sheet
npm ERR!     @expo/react-native-action-sheet@"3.13.0" from react-native-gifted-chat@1.0.0-beta-4
npm ERR!     node_modules/react-native-gifted-chat
npm ERR!       react-native-gifted-chat@"1.0.0-beta-4" from the root project
npm ERR!   22 more (@react-navigation/core, @react-navigation/elements, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0" from use-memo-one@1.1.1
npm ERR! node_modules/react-native-gifted-chat/node_modules/use-memo-one
npm ERR!   use-memo-one@"1.1.1" from react-native-gifted-chat@1.0.0-beta-4
npm ERR!   node_modules/react-native-gifted-chat
npm ERR!     react-native-gifted-chat@"1.0.0-beta-4" 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.

Steps to Reproduce / Code Snippets

npm i --save react npm i --save react-native-gifted-chat@1.0.0-beta-4

Expected Results

Installs without errors

Additional Information

  • Nodejs version: 16.14.2
  • React version: 17.0.1
  • React Native version: 0.64.3
  • react-native-gifted-chat version: 1.0.0-beta-4
  • Platform(s) (iOS, Android, or both?): N/A
  • TypeScript version: 4.3.5

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
Johan-dutoitcommented, Jun 6, 2022

I’ve created a PR to bump use-memo-one. It’s a temp “workaround”, as we’ll likely have to deal with this again shortly as React@18 is out. Seems use-memo-one is abandoned.

CC @orta @admehta01

Read more comments on GitHub >

github_iconTop Results From Across the Web

having an issue creating new react app with create-react-app
I am was dealing with the same problem and have managed to understand and fix it. I will try to explain it below....
Read more >
How to Upgrade to React 17 and Webpack 5 Step by Step
How to Upgrade to React 17 and Webpack 5 Step by Step · 1. CRACO · 2. Eject · 3. Dynamic Module Federation...
Read more >
React v17.0 – React Blog
The React 17 release is unusual because it doesn't add any new developer-facing features. Instead, this release is primarily focused on making ...
Read more >
Graphql@16.5.0: The engine "node" is incompatible with this ...
I've got a custom app and when I launch vtex link I get the following error: error: react@3.x builder failed to install dependen…...
Read more >
error found incompatible module. - You.com | The AI Search ...
create-react-app (Found incompatible module) ... Asked Jul 17, 2019 • 20 votes 3 answers. QUESTION ... Please use tf.compat.v1.reset_default_graph instead.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found