title: How to fix error: Attempted import error: 'Route' is not exported from 'react-router-dom'
body: <p>-- Update: This started working when I just stopped the development server, quit VSCode and restarted it again. Not sure what caused it. </p>
  
  <p>Busy learning React and ran into this error. I have tried several other SO posts but can't seem to get an answer to my problem.</p>
  
  <p>I'm following the guidance to use only react-router-dom and import BrowserRouter and Route from react-router-dom. But I'm getting an error: </p>
  
  <pre><code>./src/App.js
  Attempted import error: 'Route' is not exported from 'react-router-dom'.
  </code></pre>
  
  <p>Not sure what I'm doing wrong here? </p>
  
  <p>Here is my App.js</p>
  
  <pre><code>import React, { Component } from 'react';
  import Navbar from './components/Navbar'
  import { BrowserRouter, Route } from 'react-router-dom'
  import Home from './components/Home'
  
  class App extends Component {
    render() {
      return (
        &lt;BrowserRouter&gt;
        &lt;div className="App"&gt;
          &lt;Navbar /&gt;
          &lt;Route path='/' component={Home} /&gt;
        &lt;/div&gt;
        &lt;/BrowserRouter&gt;
      );
    }
  }
  
  export default App;
  </code></pre>
  
  <p>Here is my package.json:</p>
  
  <pre><code>  "name": "poketimes",
    "version": "0.1.0",
    "private": true,
    "dependencies": {
      "react": "^16.8.5",
      "react-dom": "^16.8.5",
      "react-router-dom": "^5.0.0",
      "react-scripts": "2.1.8"
    },
    "scripts": {
      "start": "react-scripts start",
      "build": "react-scripts build",
      "test": "react-scripts test",
      "eject": "react-scripts eject"
    },
    "eslintConfig": {
      "extends": "react-app"
    },
    "browserslist": [
      "&gt;0.2%",
      "not dead",
      "not ie &lt;= 11",
      "not op_mini all"
    ]
  }
  </code></pre>
  
  <p>From what I've been reading, other posts still use the react-router separately, but if I'm understanding the documentation correctly, I'm not supposed to do that in this version? Also, I'm following a tutorial that does this exactly and it seems to work. </p>
  
  <p>Any advice would be greatly appreciated, thanks!</p>