title: TypeError: middleware is not a function
body: <p>I'm trying to apply redux in my reactjs app. I can't proceed because of these errors:</p>
  
  <p><a href="https://i.stack.imgur.com/UTUnE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/UTUnE.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/VxId8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VxId8.png" alt="enter image description here"></a></p>
  
  <p>I'm sure that I already installed all the dependencies that I need. Here is a relevant part of my package.json</p>
  
  <pre><code>"dependencies": {
     "react-redux": "^5.0.6",
     "redux": "^3.7.2",
     "redux-logger": "^3.0.6",
     "redux-promise": "^0.5.3",
     "redux-thunk": "^2.2.0",
  }
  </code></pre>
  
  <p>Here is a part of my index.js that implements redux</p>
  
  <pre><code>import { createStore, applyMiddleware } from 'redux';
  import { Provider } from 'react-redux';
  import thunkMiddleware from 'redux-thunk';
  import createLogger from 'redux-logger';
  import reducers from './reducers';
  
  const logger = createLogger();
  const store = createStore(reducers,
      applyMiddleware(
          thunkMiddleware, logger
      )
  )
  
  ReactDOM.render(
      &lt;Provider store={store}&gt;
          &lt;App /&gt;
      &lt;/Provider&gt;,
      document.getElementById('root')
  );
  </code></pre>