title: Error: Cannot resolve module 'module' in path/.../rewire/lib
body: <p>I am using <code>rewire</code> prior to <code>require</code> method in my React/Flux app, to load components. But after installation I got this error:</p>
  
  <pre><code>ERROR in ./~/rewire/lib/rewire.js
  Module not found: Error: Cannot resolve module 'module' in /Users/path/node_modules/rewire/lib
   @ ./~/rewire/lib/rewire.js 1:13-30
  
  ERROR in ./~/rewire/lib/rewire.js
  Module not found: Error: Cannot resolve module 'fs' in /Users/path/node_modules/rewire/lib
   @ ./~/rewire/lib/rewire.js 2:9-22
  
  ERROR in ./~/rewire/lib/moduleEnv.js
  Module not found: Error: Cannot resolve module 'module' in /Users/path/node_modules/rewire/lib
   @ ./~/rewire/lib/moduleEnv.js 3:13-30
  
  ERROR in ./~/rewire/lib/moduleEnv.js
  Module not found: Error: Cannot resolve module 'fs' in /Users/path/node_modules/rewire/lib
   @ ./~/rewire/lib/moduleEnv.js 4:9-22
  </code></pre>
  
  <p>While googling I found similar issue, but no desirable solution. Does anyone know what is the issue or conflict about and how to resolve it?</p>