title: Node.js require fail when outside of app.js
body: <p>I am trying to load a custom module <code>./routes/exchange.js</code> from another module <code>./routes/socketRouter.js</code>. It throws</p>
  
  <pre><code>module.js:340
  throw err;
        ^
  Error: Cannot find module './routes/exchange'
  </code></pre>
  
  <p>The same call <code>require('./routes/exchange)</code> done from app.js (in the root directory) is successfull!</p>
  
  <p>Is there a limitation that prevent calling require somewhere else than in the app.js?</p>
  
  <p>I already tried many different path such as:
  <code>require('./routes/exchange.js')</code>, <code>require('exchange')</code>, <code>require('exchange.js')</code></p>
  
  <p>Thanks!</p>