title: Cannot resolve 'file' or 'directory' (react)
body: <p>Trying to import new module from folder components, but I'm getting some errors</p>
  
  <p>my index.js</p>
  
  <pre><code>import React from 'react'
  import {
      render
  } from 'react-dom'
  import {
      Provider as ReduxProvider
  } from 'react-redux'
  import {
      Router,
      Route,
      IndexRoute,
      Link,
      Redirect,
      browserHistory
  } from 'react-router'
  
  
  import  App  from './components'
  
  
  
  import {
      routerMiddleware
  } from 'react-router-redux'
  
  import {
      IntlProvider,
      addLocaleData
  } from 'react-intl'
  import en from 'react-intl/locale-data/en'
  import zh from 'react-intl/locale-data/zh'
  addLocaleData([...en, ...zh])
  
  
      import {
          createStore,
          compose,
          applyMiddleware
      } from 'redux'
      import Immutable from 'immutable'
      import {
          combineReducers
      } from 'redux-immutable'
      import thunk from 'redux-thunk'
      render((
          &lt;ReduxProvider &gt;
              &lt;IntlProvider locale={'en'}&gt;
                &lt;Router history={browserHistory}&gt;
                  &lt;Route path="/" component={App}&gt;
  
  
  
                  &lt;/Route&gt;
                &lt;/Router&gt;
              &lt;/IntlProvider&gt;
        &lt;/ReduxProvider&gt;
      ), document.getElementById('mount'))
  </code></pre>
  
  <p>Folder with components src/components
  there my structure</p>
  
  <p><a href="https://i.stack.imgur.com/LHS7W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LHS7W.png" alt="enter image description here"></a></p>
  
  <p>My App.JS inside folder components</p>
  
  <pre><code>import React from 'react'
  import { Link, browserHistory } from 'react-router'
  
      export default function App({ children }) {
        return (
          &lt;div&gt;
            1
          &lt;/div&gt;
        )
      }
      export default App
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/8n3OH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8n3OH.png" alt="enter image description here"></a></p>
  
  <p>So I don't understand why it not see the directory with component's, where I' wrong?</p>