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.

[Bug] package versions are conflicted

See original GitHub issue



Reproduction link

Operating System

MacOS Catalina 10.15.7


Macbook Pro

Browser & Version

without browser

Steps to reproduce

  1. clone the repository
  2. npm install

What is expected?

Dependencies are successfully installed,

What is actually happening?

an error bellow occurred

$ npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"17.0.2" from the root project
npm ERR!   peer react@"^16.8.0 || ^17.0.0" from @material-ui/core@4.11.4
npm ERR!   node_modules/@material-ui/core
npm ERR!     peer @material-ui/core@"^4.0.0" from @material-ui/icons@4.11.2
npm ERR!     node_modules/@material-ui/icons
npm ERR!       @material-ui/icons@"4.11.2" from the root project
npm ERR!     @material-ui/core@"4.11.4" from the root project
npm ERR!   11 more (@material-ui/icons, @material-ui/styles, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.3.0" from react-event-listener@0.6.6
npm ERR! node_modules/react-event-listener
npm ERR!   react-event-listener@"^0.6.0" from react-swipeable-views-utils@0.13.9
npm ERR!   node_modules/react-swipeable-views-utils
npm ERR!     react-swipeable-views-utils@"^0.13.9" from react-swipeable-views@0.13.9
npm ERR!     node_modules/react-swipeable-views
npm ERR!       react-swipeable-views@"0.13.9" 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.


An dependency react-swipeable-views does not support React (and React-Dom) 17.

So, matriari-dashboard-react also should depend on React 16.4.0.

Additional comments

Issue Analytics

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

github_iconTop GitHub Comments

namendezcommented, Jul 10, 2021

I solved this upgrading react-swipeable-views dependency to 0.14.0, so far it seems to be working OK (not the best solution but downgrading node and npm was not an option).

bigen1925commented, May 11, 2021

@EINazare I tried to use Node 14.16.1 (and npm v6.14.12), then error didn’t occurred. Before then, I used Node 15.7.0.

This is better than downgrading React. 😃

Thank you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't install package because of conflict dependecy
I try install a package in python with cmd. but, i to counter this error: ERROR: Cannot install liionpack==0.3, liionpack==0.3.1 and ...
Read more >
Found conflicts between different versions of 'assembly' that ...
This error occurs during a build when more than one version of the same dependent assembly is referenced in a build of the...
Read more >
Package conflicts - Unity - Manual
To resolve the package conflict, Unity considers the version number of the conflicted package and the number of levels of dependencies between the...
Read more >
Problems with conflicts and broken dependencies
Error : Problem 1: cannot install the best update candidate for package ... Package Architecture Version Repository Size.
Read more >
error: resolutionimpossible: | The AI Search Engine You Control
0 To fix this you could try to: 1. loosen the range of package versions you've specified 2. remove package versions to allow...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found