title: React Redux can't resolve its own modules
body: <p>When I run webpack for my project, I get this error suggesting that the React-Redux package can't resolve some of its internal modules:</p>
  
  <pre><code>ERROR in ./node_modules/react-redux/es/index.js
  Module not found: Error: Can't resolve './components/Context' in '/home/.../frontend/src/node_modules/react-redux/es'
   @ ./node_modules/react-redux/es/index.js 3:0-57 12:0-179
   @ ./index.tsx
  
  ERROR in ./node_modules/react-redux/es/index.js
  Module not found: Error: Can't resolve './components/Provider' in '/home/.../frontend/src/node_modules/react-redux/es'
   @ ./node_modules/react-redux/es/index.js 1:0-45 12:0-179
   @ ./index.tsx
  
  ERROR in ./node_modules/react-redux/es/index.js
  Module not found: Error: Can't resolve './components/connectAdvanced' in '/home/.../frontend/src/node_modules/react-redux/es'
   @ ./node_modules/react-redux/es/index.js 2:0-59 12:0-179
   @ ./index.tsx
  
  ERROR in ./node_modules/react-redux/es/index.js
  Module not found: Error: Can't resolve './connect/connect' in '/home/.../frontend/src/node_modules/react-redux/es'
   @ ./node_modules/react-redux/es/index.js 4:0-40 12:0-179
   @ ./index.tsx
  
  ERROR in ./node_modules/react-redux/es/index.js
  Module not found: Error: Can't resolve './hooks/useDispatch' in '/home/.../frontend/src/node_modules/react-redux/es'
   @ ./node_modules/react-redux/es/index.js 5:0-70 12:0-179 12:0-179
   @ ./index.tsx
  
  ERROR in ./node_modules/react-redux/es/index.js
  Module not found: Error: Can't resolve './hooks/useSelector' in '/home/.../frontend/src/node_modules/react-redux/es'
   @ ./node_modules/react-redux/es/index.js 6:0-70 12:0-179 12:0-179
   @ ./index.tsx
  
  ERROR in ./node_modules/react-redux/es/index.js
  Module not found: Error: Can't resolve './hooks/useStore' in '/home/.../frontend/src/node_modules/react-redux/es'
   @ ./node_modules/react-redux/es/index.js 7:0-61 12:0-179 12:0-179
   @ ./index.tsx
  
  ERROR in ./node_modules/react-redux/es/index.js
  Module not found: Error: Can't resolve './utils/batch' in '/home/.../frontend/src/node_modules/react-redux/es'
   @ ./node_modules/react-redux/es/index.js 8:0-41 11:0-8
   @ ./index.tsx
  
  ERROR in ./node_modules/react-redux/es/index.js
  Module not found: Error: Can't resolve './utils/reactBatchedUpdates' in '/home/.../frontend/src/node_modules/react-redux/es'
   @ ./node_modules/react-redux/es/index.js 9:0-79 11:9-14 12:0-179
   @ ./index.tsx
  
  ERROR in ./node_modules/react-redux/es/index.js
  Module not found: Error: Can't resolve './utils/shallowEqual' in '/home/.../frontend/src/node_modules/react-redux/es'
   @ ./node_modules/react-redux/es/index.js 10:0-48 12:0-179
   @ ./index.tsx
  </code></pre>
  
  <p>Does anyoe have any idea how to resolve this? Could it possibly be because I installed react-redux before redux? If so, how could I fix it. I already tried deleting <code>package-lock.json</code> and deleting <code>node_modules</code> and re-running <code>npm install</code>. I also dug into the filesystem and found that the unresolvable modules exist on the filesystem; for example, even though webpack can't resolve <code>./components/Provider</code>, the file <code>node_modules/react-redux/es/Provider.js</code> exists and looks fine.</p>
  
  <p>Here is the relevant part of <code>package.json</code>. Could it be a version mismatch or something?</p>
  
  <pre><code>"devDependencies": {
      "@types/classnames": "^2.2.9",
      "@types/react": "^16.9.9",
      "@types/react-dom": "^16.9.1",
      "@types/react-redux": "^7.1.5",
      "@types/redux": "^3.6.0",
      "@typescript-eslint/eslint-plugin": "^2.4.0",
      "@typescript-eslint/parser": "^2.4.0",
      "eslint": "^6.5.1",
      "eslint-config-airbnb": "^18.0.1",
      "eslint-import-resolver-typescript": "^2.0.0",
      "eslint-plugin-import": "^2.18.2",
      "eslint-plugin-jsx-a11y": "^6.2.3",
      "eslint-plugin-react": "^7.16.0",
      "eslint-plugin-react-hooks": "^1.7.0",
      "prop-types": "^15.7.2",
      "react": "^16.10.2",
      "react-dom": "^16.10.2",
      "react-redux": "^7.1.1",
      "redux": "^4.0.4",
      "source-map-loader": "^0.2.4",
      "ts-loader": "^6.2.0",
      "typescript": "^3.6.4",
      "typescript-eslint": "0.0.1-alpha.0",
      "webpack": "^4.41.0",
      "webpack-cli": "^3.3.9"
    },
    "dependencies": {}
  </code></pre>