title: Uncaught TypeError: Cannot read property 'apply' of undefined react redux
body: <p>I know there are some answers out there, but none of them worked for me, such as installing the redux devtools extension. I already had it. I am using react and redux with a django backend. This is package.json dependencies</p>
  
  <pre><code>"devDependencies": {
      "@babel/core": "^7.5.5",
      "@babel/plugin-proposal-class-properties": "^7.5.5",
      "@babel/preset-env": "^7.5.5",
      "@babel/preset-react": "^7.0.0",
      "babel-loader": "^8.0.6",
      "babel-plugin-transform-class-properties": "^6.24.1",
      "webpack": "^4.38.0",
      "webpack-cli": "^3.3.6"
    },
    "dependencies": {
      "axios": "^0.19.0",
      "react": "^16.8.6",
      "react-dom": "^16.8.6",
      "react-redux": "^7.1.0",
      "react-router-dom": "^5.0.1",
      "redux": "^4.0.4",
      "redux-devtools-extension": "^2.13.8",
      "redux-thunk": "^2.3.0"
    }
  </code></pre>
  
  <p>and here is store.js. error</p>
  
  <pre><code>import { createStore, applyMiddleware } from 'react';
  import thunk from 'redux-thunk';
  import { rootReducer } from './redux-file.js';
  import { composeWithDevTools } from 'redux-devtools-extension';
  const initialState = {};
  const middleware = [thunk];
  const applied = composeWithDevTools ( applyMiddleware(...middleware) ); //error!
  const store = createStore(rootReducer, initialState, applied);
  
  
  export default store;
  </code></pre>
  
  <p>this is app.js</p>
  
  <pre><code>import React from 'react';
  import Board from './Board';
  import Home from "./Home";
  import { Provider } from 'react-redux';
  import store from './store';
  import {BrowserRouter, Route} from 'react-router-dom';
  class App extends React.Component {
    render() {
      return (
        &lt;Provider store={store}&gt;
          &lt;BrowserRouter&gt;
            &lt;div className="App" &gt;
              &lt;div className = "header"&gt;&lt;/div&gt;
              &lt;div className="navbar"&gt;&lt;/div&gt;
              &lt;div className="body"&gt;
                &lt;Route path="/" component={Home} /&gt;
                &lt;Route path="/game/play/:gameId/" component={Board} /&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/BrowserRouter&gt;
        &lt;/Provider&gt;
      )
    }
  }
  
  export default App;
  </code></pre>