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.

Could not resolve dependency peer react@"^16.12.0" from pullstate@1.20.1

See original GitHub issue

This is the error I get after npm install pullstate in a create-react-app project

    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.12.0" from pullstate@1.20.1
    npm ERR! node_modules/pullstate
    npm ERR!   pullstate@"1.20.1" 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.

Link to a related Stackoverflow question

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
lostpebblecommented, May 11, 2022

Have you guys tried the latest version? I did update the peer dependencies for React 18.

@lostpebble Thank you for upgrading your package to support React 17. I didn’t thank you then, I don’t know why, but I am thanking you now.

Hahah, no stress. You’re welcome!

1reaction
lostpebblecommented, Mar 7, 2021

You can check out version 1.21.0 now @pSnehanshu . I think it should fix this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to resolve dependency tree Reactjs
Just run below code. Works fine for me every time. You should also see this solution with the error. npm install --legacy-peer-deps.
Read more >
npm ERR! Could not resolve dependency peer react [Solved]
The error "npm ERR! Could not resolve dependency peer react" occurs because since NPM version 7, `npm` tries to automatically install peer dependencies....
Read more >
enzyme-adapter-react-16
Enzyme is a JavaScript Testing utility for React that makes it easier to test your React Components' output. You can also manipulate, traverse, ......
Read more >
could not resolve dependency peer react@ ^16.0.0
Solution 1: Ignore the peerDependencies The easiest way to fix the issue is to pass an additional parameter –legacy-peer-deps to npm install. The...
Read more >
How to solve peer dependencies error after updating all ...
Can anyone help me figure it out? Currently I get this error: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency...
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