title: Redux TypeError: Cannot read property 'apply' of undefined
body: <p>I have disabled react devtools and redux devtools.</p>
  
  <p>I've been searching for ways to deal with this problem for hours, and most of the problems are in compose while I don't change code at all.</p>
  
  <pre><code>import { createStore, applyMiddleware,compose } from 'redux';
  import thunk from 'redux-thunk';
  import rootReducer from './reducers';
  
  const initialState={};
  
  const middleware = [thunk];
  
  const store = createStore(rootReducer,initialState,
      compose(
          applyMiddleware(...middleware),
          window.__REDUX_DEVTOOLS_EXTENSION__&amp;&amp; window.__REDUX_DEVTOOLS_EXTENSION__()
          )   
      );
  
  
  export default store;
  </code></pre>
  
  <p>I really don't understand why this happened. I don't change anything and the last thing I do is just do git push origin master to my repository and suddenly when I compiled I got this error:</p>
  
  <p>Iam Using this in my front end :</p>
  
  <pre><code>  "@material-ui/core": "^3.3.1",
      "@material-ui/icons": "^3.0.1",
      "axios": "^0.18.0",
      "jwt-decode": "^2.2.0",
      "prop-types": "^15.6.2",
      "react": "^16.6.0",
      "react-dom": "^16.6.0",
      "react-redux": "^5.1.0",
      "react-router-dom": "^4.3.1",
      "react-scripts": "2.0.5",
      "react-select": "^2.1.1",
      "recharts": "^1.3.5",
      "redux": "^4.0.1",
      "redux-thunk": "^2.3.0",
      "typeface-roboto": "0.0.54"
  </code></pre>
  
  <p>Back-end :</p>
  
  <pre><code> "dependencies": {
      "bcryptjs": "^2.4.3",
      "body-parser": "^1.18.3",
      "express": "^4.16.4",
      "mongoose": "^5.3.11",
      "multer": "^1.4.1",
      "passport": "^0.4.0",
      "passport-jwt": "^4.0.0",
      "path": "^0.12.7",
      "validator": "^10.9.0",
      "xlsx": "^0.14.1"
    },
    "devDependencies": {
      "concurrently": "^4.0.1",
      "nodemon": "^1.18.6",
    },
  </code></pre>
  
  <p><strong>Result Error:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/aCami.png" rel="noreferrer"><img src="https://i.stack.imgur.com/aCami.png" alt="Image Error 1"></a></p>
  
  <p><strong>Redux :</strong></p>
  
  <p><a href="https://i.stack.imgur.com/dXusO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dXusO.png" alt="Image Error 2"></a></p>