title: React-Router - Uncaught TypeError: Cannot read property 'route' of undefined
body: <p>Trying to use react router v4 with redux and running into this error, seem to be following the docs, couldn't find any information anywhere on it so I'm at a loss:</p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property 'route' of undefined</p>
  </blockquote>
  
  <p>Here's my code:</p>
  
  <pre><code>import React, {Component} from 'react';
  import {
    BrowserRouter as Router,
    Route,
    Link,
    withRouter
  } from 'react-router-dom'
  import Menu from './Menu';
  import { connect } from "react-redux";
  import Play from './Play';
  class Manager extends Component {
      render() {
          return(
               &lt;Router&gt;
                  &lt;div&gt;
                    &lt;Route exact path="/" component={Menu}/&gt;
                    &lt;Route path="/menu" component={Menu}/&gt;
                    &lt;Route path="/play" component={Play}/&gt;
                  &lt;/div&gt;
                &lt;/Router&gt;
          )
      }
  }
  export default withRouter(connect(mapStateToProps, mapDispatchToProps)(Manager));
  </code></pre>
  
  <p>and here's the full error:</p>
  
  <pre><code>game.js:26838 Uncaught TypeError: Cannot read property 'route' of undefined
      at Route.computeMatch (game.js:26838)
      at new Route (game.js:26815)
      at game.js:15322
      at measureLifeCyclePerf (game.js:15102)
      at ReactCompositeComponentWrapper._constructComponentWithoutOwner (game.js:15321)
      at ReactCompositeComponentWrapper._constructComponent (game.js:15307)
      at ReactCompositeComponentWrapper.mountComponent (game.js:15215)
      at Object.mountComponent (game.js:7823)
      at ReactCompositeComponentWrapper.performInitialMount (game.js:15398)
      at ReactCompositeComponentWrapper.mountComponent (game.js:15285)
  </code></pre>