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.

Unmet peer dependency 'react-router' despite having 'react-router-dom'

See original GitHub issue

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"

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:open
  • Created 5 years ago
  • Reactions:14
  • Comments:6

github_iconTop GitHub Comments

2reactions
govizloracommented, May 2, 2019

+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 or react-router-native, instead of react-router.

1reaction
imjoshdean-tccommented, Mar 13, 2019

@supasate Is there any code in connected-react-router that has actual dependencies that aren’t in react-router-dom? If not, can we just change the peer dependency to react-router-dom instead of react-router?

Read more comments on GitHub >

github_iconTop 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 >

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