Open Streeterxs opened 2 years ago
@Streeterxs Did you find a workaround for this?
This issue has been automatically marked stale because we haven't received a response from the original author in a while 🙈. This automation helps keep the issue tracker clean from issues that are not actionable. Please reach out if you have more information for us or you think this issue shouldn't be closed! 🙂 If you don't do so within 7 days, this issue will be automatically closed.
What version of React Router are you using?
v5-compat
Steps to Reproduce
Import a Switch from "react-router-dom":
Expected Behavior
After
yarn install
andyarn build
(as CONTRIBUTING.md says) should install react-router-dom from packages/react-router-dom-v5-compat/package.json peerDependencies to permit usage and testability of CompatRoute and CompatRouterActual Behavior
Breaking my CompatRoute fail test on Switch usage (and CompatRouter useHistory() as well).