title: react router - Router.js:111Uncaught TypeError: Cannot read property 'getCurrentLocation' of undefined
body: <p>I've been following this tutorial to get React Router working <a href="https://scotch.io/tutorials/routing-react-apps-the-complete-guide" rel="nofollow noreferrer">https://scotch.io/tutorials/routing-react-apps-the-complete-guide</a> ... yet when I try and utilise any function of react router - it gives me this:</p>
  
  <blockquote>
    <p>Router.js:111Uncaught TypeError: Cannot read property
    'getCurrentLocation' of undefined
        at Object.createTransitionManager (localhost:8080/public/bundle.js:22730:14)
        at Object.componentWillMount (localhost:8080/public/bundle.js:22737:36)
        at localhost:8080/public/bundle.js:15709:24
        at measureLifeCyclePerf (localhost:8080/public/bundle.js:15436:13)
        at ReactCompositeComponentWrapper.performInitialMount (localhost:8080/public/bundle.js:15708:10)
        at ReactCompositeComponentWrapper.mountComponent (localhost:8080/public/bundle.js:15619:22)
        at Object.mountComponent (localhost:8080/public/bundle.js:8009:36)
        at ReactCompositeComponentWrapper.performInitialMount (localhost:8080/public/bundle.js:15732:35)
        at ReactCompositeComponentWrapper.mountComponent (localhost:8080/public/bundle.js:15619:22)
        at Object.mountComponent (localhost:8080/public/bundle.js:8009:36)</p>
  </blockquote>
  
  <p>I've tried using webpack-dev-server as well... and still no joy - same issue. I can't find any other mention of this error... what could be the issue?</p>
  
  <pre><code> import React, { Component } from 'react';
   import { render } from 'react-dom';
   import {Router, Route} from 'react-router';
  
  class Home extends Component {
  render(){
      return (&lt;h1&gt;Hello&lt;/h1&gt;);
  }
  }
  
  render(
  &lt;Router&gt;
      &lt;Route path="/" component={Home}/&gt;
  &lt;/Router&gt;,
  document.getElementById('container')
   );'
  </code></pre>