You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
react-router.js:1160 Uncaught TypeError: Cannot read property 'route' of undefined
at Route.computeMatch (react-router.js:1160)
at new Route (react-router.js:1137)
at react-dom.js:4749
at measureLifeCyclePerf (react-dom.js:4529)
at ReactCompositeComponentWrapper._constructComponentWithoutOwner (react-dom.js:4748)
at ReactCompositeComponentWrapper._constructComponent (react-dom.js:4734)
at ReactCompositeComponentWrapper.mountComponent (react-dom.js:4642)
at Object.mountComponent (react-dom.js:11542)
at ReactCompositeComponentWrapper.performInitialMount (react-dom.js:4825)
at ReactCompositeComponentWrapper.mountComponent (react-dom.js:4712)
The text was updated successfully, but these errors were encountered:
Version
4.0.0
Test Case
Please find the test here:
https://codepen.io/pietro909/pen/RVWmwZ?editors=0010#0
based on the default one with dependencies updated to 4.0.0 and the code from https://reacttraining.com/react-router/web/api/withRouter
Same bug on SO:
http://stackoverflow.com/questions/43175941/react-router-cannot-read-property-route-of-undefined
http://stackoverflow.com/questions/43350683/react-router-uncaught-typeerror-cannot-read-property-route-of-undefined
Steps to reproduce
Expected Behavior
No errors?
Actual Behavior
The text was updated successfully, but these errors were encountered: