title: angular2 using twitter module from npm
body: <p>I had problem with LODASH importing to Angular2 app, got answer <a href="https://stackoverflow.com/questions/35130682/angular2-failing-lodash-import/35131266#35131266">on this post here</a> and all working now.</p>
  
  <p>Next problem I have is that I do not know how to make "twitter" npm module to work within the app.</p>
  
  <p>Now I installed "npm install twitter" and tried to import it with:</p>
  
  
  
  <pre><code>import * as Twitter from 'twitter';
  </code></pre>
  
  <p>but I get "cannot find module 'twitter'. I tried adding to system.config without luck.</p>
  
  <p>What am I doing wrong here? How should the code look like for import and using this twitter module?</p>
  
  <p>Here is system.config in index.html:</p>
  
  <pre><code>  System.config({
      packages: {
        app: {
          format: 'register',
          defaultExtension: 'js'
        }
      },
      map: {
        lodash: 'node_modules/lodash/lodash.js',
        twitter: 'node_modules/twitter/index.js'
      },
      meta: {
        lodash: { format: 'amd' },
        twitter: { format: 'amd' }
      }
    });
  </code></pre>