title: The prop `history` is marked as required in `Router`, but its value is `undefined`. in Router
body: <p>I am new to ReactJs. This is my code: </p>
  
  <pre><code>var React = require('react');
  var ReactDOM = require('react-dom');
  var {Route, Router, IndexRoute, hashHistory} = require('react-router');
  var Main = require('Main');
  ReactDOM.render(
    &lt;Router history={hashHistory}&gt;
    &lt;Route path="/" component={Main}&gt;&lt;/Route&gt;
  &lt;/Router&gt;, document.getElementById('app'));
  </code></pre>
  
  <p>and compiling it with webpack. Also I added Main component to my aliases. 
  The console throws these errors: 
  <a href="https://i.stack.imgur.com/DjRVq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DjRVq.png" alt=""></a>
  I also read these links : </p>
  
  <p><a href="https://stackoverflow.com/questions/42845303/react-router-failed-prop-history-is-undefined">React Router failed prop 'history', is undefined</a></p>
  
  <p><a href="https://teamtreehouse.com/community/how-do-i-resolve-history-is-marked-required-when-value-is-undefined" rel="noreferrer">How do I resolve history is marked required, when value is undefined?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/37355265/upgrading-react-router-and-replacing-hashhistory-with-browserhistory">Upgrading React-Router and replacing hashHistory with browserHistory</a></p>
  
  <p>and many searches around the web, but I couldn't fix this issue. React Router is version 4</p>