title: Error importing redux:
body: <p>ERROR:</p>
  
  <blockquote>
    <p>Error: Cannot find module 'redux'<br>
      at Function.Module._resolveFilename (module.js:555:15)<br>
      at Function.Module._load (module.js:482:25)<br>
      at Module.require (module.js:604:17)<br>
      at require (internal/module.js:11:18)<br>
      at Object. (C:\dev\Django 
      code\portfolio_web\stats_frontend\node_modules\react- 
      redux\lib\connect\mapDispatchToProps.js:8:14)<br>
      at Module._compile (module.js:660:30)<br>
      at Module._extensions..js (module.js:671:10)<br>
      at Object.require.extensions.(anonymous function) [as .js] (C:\dev\Django 
      code\portfolio_web\stats_frontend\node_modules\babel- 
      register\lib\node.js:152:7)      at Module.load (module.js:573:32)<br>
      at tryModuleLoad (module.js:513:12)  </p>
  </blockquote>
  
  <hr>
  
  <p>The file where I import <code>react-redux</code> is <code>reduxStore.js</code>:  </p>
  
  <pre><code>import {createStore} from 'react-redux; 
  //There is nothing else. The function being imported doesn't change anything`  
  </code></pre>
  
  <p>I'm running the file with babel-node, or with webpack-cli (which is using babel to transpile <code>ES2015</code>. In both cases I get the same error.</p>
  
  <hr>
  
  <p>Tracing the error I can open the source (
  <code>...\stats_frontend\node_modules\react-redux\lib\connect\mapDispatchToProps.js</code> of the error (its from official <code>react-redux</code> dist).</p>
  
  <p>Line 8 (which causes the error) I can see a commonJS import: 
  <code>var _redux = require('redux');</code></p>
  
  <p>Upon further inspection I can see that the node search algorithm will not find <code>'redux'</code> because no such file exists in <code>./node_modules/react-redux/</code> or in <code>./node_modules/</code></p>
  
  <hr>
  
  <p>I have installed and updated my <code>react-redux</code> installation with <code>node install --save-dev react-redux</code> with no errors.</p>
  
  <p>I was hoping someone can provide insight on why the error occurs and how to fix it</p>