Once I load the document in Google Chrome. Dev Tools gives me the following error.
Uncaught TypeError: Cannot read property ‘getCurrentLocation’ of undefined
at Constructor.createTransitionManager (ReactRouter.min.js:1)
at Constructor.componentWillMount (ReactRouter.min.js:1)
at react.js:6244
at measureLifeCyclePerf (react.js:5971)
at ReactCompositeComponentWrapper.performInitialMount (react.js:6243)
at ReactCompositeComponentWrapper.mountComponent (react.js:6154)
at Object.mountComponent (react.js:13768)
at ReactCompositeComponentWrapper.performInitialMount (react.js:6267)
at ReactCompositeComponentWrapper.mountComponent (react.js:6154)
at Object.mountComponent (react.js:13768)
It works to change that react-router however I get this error code:
react.js:20478 Warning: You are manually calling a React.PropTypes validation function for the component prop on Route. This is deprecated and will not work in the next major version. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.
printWarning @ react.js:20478
react.js:20478 Warning: You are manually calling a React.PropTypes validation function for the components prop on Route. This is deprecated and will not work in the next major version. You may be seeing this warning due to a third-party PropTypes library.
printWarning @ react.js:20478
react.js:20478 Warning: You are manually calling a React.PropTypes validation function for the getComponent prop on Route. This is deprecated and will not work in the next major version. You may be seeing this warning due to a third-party PropTypes library.
printWarning @ react.js:20478
react.js:20478 Warning: You are manually calling a React.PropTypes validation function for the getComponents prop on Route. This is deprecated and will not work in the next major version. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.
The version or React Router the book talks about has been replaced by a newer version. That’s why you are seeing these warnings. The warnings are OK for now, but you will need to update to a newer version of the Router. I haven’t had a chance to update it yet either, but I’ll do so and post an updated tutorial shortly