title: How can I add bootstrap to Angular2 via system.js
body: <p>I'm trying to add bootstrap module to my ng2 application with by <a href="https://github.com/ng-bootstrap/ng-bootstrap" rel="noreferrer">https://github.com/ng-bootstrap/ng-bootstrap</a>.
  But all time getting this error:</p>
  
  <p><a href="https://i.stack.imgur.com/i0Cqj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/i0Cqj.png" alt="enter image description here"></a></p>
  
  <p>It's my index file, maybe I have some mistake in my file?
  index.html:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;MyApplication&lt;/title&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
      &lt;!--&lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"&gt;--&gt;
      &lt;link href="font-awesome/css/font-awesome.css" rel="stylesheet"&gt;
      &lt;link rel="stylesheet" href="styles.css"&gt;
      &lt;!-- 1. Load libraries --&gt;
      &lt;!-- Polyfill(s) for older browsers --&gt;
      &lt;script src="node_modules/core-js/client/shim.min.js"&gt;&lt;/script&gt;
      &lt;script src="node_modules/zone.js/dist/zone.js"&gt;&lt;/script&gt;
      &lt;script src="node_modules/reflect-metadata/Reflect.js"&gt;&lt;/script&gt;
      &lt;script src="node_modules/systemjs/dist/system.src.js"&gt;&lt;/script&gt;
      &lt;script src="node_modules/@ng-bootstrap/ng-bootstrap"&gt;&lt;/script&gt;
      &lt;!-- 2. Configure SystemJS --&gt;
      &lt;script src="systemjs.config.js"&gt;&lt;/script&gt;
      &lt;script&gt;
          System.import('app').catch(function(err){ console.error(err); });
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;!-- 3. Display the application --&gt;
  &lt;body&gt;
      &lt;app&gt;Loading...&lt;/app&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <hr>
  
  <h2>full systemjs.config</h2>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>/**
   * System configuration for Angular 2 samples
   * Adjust as necessary for your application needs.
   */
  (function(global) {
      // map tells the System loader where to look for things
      var map = {
          'app':                        'app', // 'dist',
          '@angular':                   'node_modules/@angular',
          'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api',
          'rxjs':                       'node_modules/rxjs',
          '@ng-bootstrap':              'node_modules/ng2-bootstrap'
      };
      // packages tells the System loader how to load when no filename and/or no extension
      var packages = {
          'app':                        { main: 'main.js',  defaultExtension: 'js' },
          'rxjs':                       { defaultExtension: 'js' },
          'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
      };
      var ngPackageNames = [
          'common',
          'compiler',
          'core',
          'forms',
          'http',
          'platform-browser',
          'platform-browser-dynamic',
          'router',
          'router-deprecated',
          'upgrade',
      ];
      // Individual files (~300 requests):
      function packIndex(pkgName) {
          packages['@angular/'+pkgName] = { main: 'index.js', defaultExtension: 'js' };
      }
      // Bundled (~40 requests):
      function packUmd(pkgName) {
          packages['@angular/'+pkgName] = { main: '/bundles/' + pkgName + '.umd.js', defaultExtension: 'js' };
      }
      // Most environments should use UMD; some (Karma) need the individual index files
      var setPackageConfig = System.packageWithIndex ? packIndex : packUmd;
      // Add package entries for angular packages
      ngPackageNames.forEach(setPackageConfig);
      var config = {
          map: map,
          packages: packages
      };
      System.config(config);
  })(this);</code></pre>
  </div>
  </div>
  </p>