title: React Router Dom with Typescript cannot GET
body: <p>I have a simple react project based on TS and use webpack. My problem is that the Router is ok, everything is redirected correctly and work ok, but when i refresh the page I have Cannot GET error.</p>
  
  <p>index.tsx</p>
  
  <pre><code>ReactDOM.render(
  &lt;div&gt;
    &lt;Router&gt;
      &lt;div className="App"&gt;
        &lt;Route exact path='/' component={Lessons}/&gt; 
        &lt;Route path='/watch/:name' component={CurrentLesson}/&gt;      
      &lt;/div&gt;
    &lt;/Router&gt;
  &lt;/div&gt;,
  document.getElementById("example"));
  </code></pre>
  
  <p>webpack.config.js</p>
  
  <pre><code>module.exports = {
  entry: "./src/index.tsx",
  output: {
      filename: "bundle.js",
      path: __dirname + "/dist",
      publicPath: '/'
  },
  
  plugins: [
    new webpack.HotModuleReplacementPlugin()
  ],
  
  devtool: "source-map",
  
  resolve: {
      extensions: [".ts", ".tsx", ".js", ".json"]
  },
  
  module: {
      loaders: [
          {
            test: /\.tsx?$/, 
            loader: "awesome-typescript-loader"
          }
        ]
  },
  
  externals: {
      "react": "React",
      "react-dom": "ReactDOM"
  },
  
  devServer: {
    historyApiFallback: true,
    hot: true
  }};
  </code></pre>
  
  <p>I read that may be there is problem with the history but for webpack the recommendations was to put output.PublicPath and devServer.historyApiFallback and for react router to pass history object but since i use react router dom it already have a history object and something else is that when i write exact same project on pure ES6 without thats shity type bullshit everything works fine. I have istalled @types/react-router-dom 4.0.x version and react-router-dom 4.x.x version</p>
  
  <p>Why when refresh i get that Cannot GET /watch/some-param</p>