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.

Cannot install recoil with latest react version 17.0.1

See original GitHub issue

I tried to install recoil in a fresh create-react-app project and this error has accord:

❯ npm install recoil
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: my-app@0.1.0
npm ERR! Found: react@17.0.1
npm ERR! node_modules/react
npm ERR!   react@"^17.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.13.1" from recoil@0.1.2
npm ERR! node_modules/recoil
npm ERR!   recoil@"*" 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.
npm ERR!

Maybe updating the project’s react peer dependency from 17.0.0 to 17.0.1 would solve this issue.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
frustakcommented, Mar 2, 2021

Thanks, it works perfectly fine now.

1reaction
mondaychencommented, Mar 2, 2021

hey @frustak @zkSharks can you test with latest version 0.1.3?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation - Recoil
Installation. NPM​. The Recoil package lives in npm. To install the latest stable version, run the following command: npm install recoil
Read more >
React - Error while updating from 17.0.1 to 17.0.2 [duplicate]
You have dependency conflict which will create this problem. I suggest solve using --force or --legacy-peer-deps . So try : npm install ......
Read more >
recoil - npm
Recoil - A state management library for React. Latest version: 0.7.6, last published: 3 months ago. Start using recoil in your project by ......
Read more >
How to Use Recoil for State Management in Your React Projects
Let's start by installing the library. If you are working on your local computer, you can install Recoil using npm or yarn ....
Read more >
React + Recoil - JWT Authentication Tutorial & Example
Recoil is a new state management library built by the Facebook team that ... Anything that doesn't fit into the other folders and...
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