[Bug] package versions are conflicted
See original GitHub issueVersion
1.10.1
Reproduction link
https://github.com/creativetimofficial/material-dashboard-react/releases/tag/1.10.1
Operating System
MacOS Catalina 10.15.7
Device
Macbook Pro
Browser & Version
without browser
Steps to reproduce
- clone the repository
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.
Solution
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:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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).
@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!