title: Require dependency of dependency
body: <p><img src="https://i.stack.imgur.com/FLXNl.png" alt="enter image description here"></p>
  
  <p>I have the modules as shown above. I need to include not only <code>quickblox</code>, but the <code>quickblox.chat</code> plugin. </p>
  
  <p>I'm using this code:</p>
  
  <pre><code>// Quickblox
  var QB = require('quickblox');
  var QBChat = require('quickblox/plugins/chat');
  </code></pre>
  
  <p><code>quickblox</code> loads fine but <code>quickblox/plugins/chat</code> throws:</p>
  
  <pre><code>Error: Cannot find module 'quickblox/plugins/chat'
  </code></pre>
  
  <p>Here is the <code>package.json</code> included in the <code>quickblox/plugins/chat</code> directory:</p>
  
  <pre><code> {
    "name": "quickblox.chat",
    "description": "Quickblox Javascript SDK / XMPP Chat plugin",
    "version": "0.8.6",
    "author": "Andrey Povelichenko &lt;andrey.povelichenko@quickblox.com&gt;",
    "homepage": "http://quickblox.com/developers/Web_XMPP_Chat_Sample"
  }
  </code></pre>