title: react redux applyMiddleware is not a function
body: <p>Couldn't spot any flaw in my code myself, I got error of </p>
  
  <blockquote>
    <p>Uncaught TypeError: (0 , _reactRedux.applyMiddleware) is not a
    function</p>
  </blockquote>
  
  <pre><code>import { applyMiddleware, createStore } from 'react-redux'
  import { promiseMiddleware } from './middleware'
  
  const defaultState = {
      appName: 'conduit',
  }
  
  const reducer = (state = defaultState, action) =&gt; {
      switch(action.type) {
          case 'HOME_PAGE_LOADED':
              return { ...state, articles: action.payload.articles }
      }
      return state
  }
  
  const middleware = applyMiddleware(promiseMiddleware)
  
  const store = createStore(reducer, middleware)
  
  export default store
  </code></pre>
  
  <p>Any clue what's wrong?</p>