title: Cannot find modules in electron project
body: <p>So the structure of my project currently looks like this:</p>
  
  <pre><code>Root
      main.js
      module.js
      ...
      gui-src
          js
              script.js
              test.js
          css
              ...
          ...
  </code></pre>
  
  <p>I want to import <code>module.js</code> into <code>script.js</code> (<code>script.js</code> is part of the renderer process btw). I try to do so using <code>require('../../module')</code> but I keep getting errors. What's weird is even if I try to load <code>require('./test')</code>, I get errors from there too! <code>require.main.require()</code> doesn't give me much luck either...</p>
  
  <p>What exactly is the reason I can't load modules, even ones right next to my source file? Am I misunderstanding require? Or do electron projects work differently than node projects? </p>