title: Failed prop type: Invalid prop `component` of type `object` supplied to `Route`, expected `function`
body: <p>I have just updated my React app to 16.6.0 and react-scripts to 2.0.3 to start using lazy and I got this error when following an example on official docs:</p>
  
  <p>Failed prop type: Invalid prop <code>component</code> of type <code>object</code> supplied to <code>Route</code>, expected <code>function</code></p>
  
  <p>Disregarding of it everything seems to be working, except this error in the console.</p>
  
  <p>Here is some of my code: </p>
  
  <pre><code>// imports here
  ... 
  const Decks = lazy(() =&gt; import('./pages/Decks'));
  ...
  class App extends Component {
        ...
  
      render() {
          return (
              &lt;ConnectedRouter history={history}&gt;
                  &lt;div&gt;
                      &lt;MenuAppBar /&gt;
  
                      &lt;div style={{paddingTop: '4rem'}}&gt;
                          &lt;Suspense fallback={&lt;LazyLoading /&gt;}&gt;
                              &lt;Switch&gt;
                                  &lt;Route exact path="/" component={Home} /&gt;
                                  &lt;Route path="/decks" component={Decks} /&gt;
                                  ...
                              &lt;/Switch&gt;
                          &lt;/Suspense&gt;
                      &lt;/div&gt;
  
                      &lt;Footer /&gt;
                  &lt;/div&gt;
              &lt;/ConnectedRouter&gt;
          );
      }
  </code></pre>
  
  <p>...
  }</p>
  
  <p>What could I be doing wrong here?</p>