Unmet peer dependency 'react-router' despite having 'react-router-dom'
See original GitHub issueI’m getting a warning during package installations saying the following:
connected-react-router@6.2.2" has unmet peer dependency "react-router@^4.3.1"
However, I have react-router-dom
as a dependency already which installs react-router
. It seems to be working correctly, but it feels like a bug that connected-react-router
doesn’t realize I have a package which install react-router
.
Please advise.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:14
- Comments:6
Top Results From Across the Web
UNMET PEER DEPENDENCY react-router@3.0.0
Unmet peer dependencies are libraries that the library depends on, but that are not installed by default. It's just telling you you need...
Read more >Developers - Unmet peer dependency 'react-router' despite having ...
I'm getting a warning during package installations saying the following: connected-react-router@6.2.2" has unmet peer dependency "react-router@^4.3.1".
Read more >pnpm unmet peer dependencies - You.com | The Search Engine ...
After upgrading to React 18 and updating all the Material UI libraries, I get this error -. ERR_PNPM_PEER_DEP_ISSUES Unmet peer dependencies .
Read more >[Redwood Blog Tutorial] Crash at yarn rw setup auth dbAuth
... @redwoodjs/testing > @storybook/builder-webpack5 > @storybook/router@6.4.18" has unmet peer dependency "react-dom@^16.8.0 || ^17.0.0".
Read more >Understanding Peer Dependencies in JavaScript
Notice how the package has no direct dependency, even though it works on top of React. We're making sure that things such as...
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 Free
Top 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
+1 For this. According to the docs here: https://github.com/ReactTraining/react-router/tree/master/packages/react-router#installation , user would install either
react-router-dom
orreact-router-native
, instead ofreact-router
.@supasate Is there any code in
connected-react-router
that has actual dependencies that aren’t inreact-router-dom
? If not, can we just change the peer dependency toreact-router-dom
instead ofreact-router
?