title: angular 2 router error: router_1.provideRouter is not a function
body: <p>I get error <code>router_1.provideRouter is not a function</code> when I use provideRouter function in bootstrap.</p>
  
  <blockquote>
    <p>angular2-polyfills.js:349           Error: router_1.provideRouter is not a
    function(…)</p>
  </blockquote>
  
  <p>here is my boot.ts code:</p>
  
  <pre><code>import {bootstrap}                     from 'angular2/platform/browser';
  import {AppComponent}                  from './app.component';
  import {Dashboard1Component}           from './dashboard1.component'
  import {TextAreaComponent}             from './textArea.component'
  import { provideRouter }               from 'angular2/router';
  const router =[
    { path: 'link1', component: TextAreaComponent },
    { path: 'link2', component: Dashboard1Component }
  ];
  
  bootstrap(AppComponent,[provideRouter(router)]).catch(err =&gt; console.error(err));;
  </code></pre>
  
  <p>and here is my script in index.html to load app and libs without using system.config.js:</p>
  
  <pre><code>&lt;!-- Angular 2 beta parts --&gt;
  &lt;script src="http://rawgithub.com/systemjs/systemjs/0.19.6/dist/system.js"&gt;&lt;/script&gt;
  &lt;script src="http://code.angularjs.org/tools/typescript.js"&gt;&lt;/script&gt;
  &lt;script src="http://code.angularjs.org/2.0.0-beta.17/angular2-polyfills.js"&gt;&lt;/script&gt;
  &lt;script src="http://code.angularjs.org/2.0.0-beta.17/Rx.js"&gt;&lt;/script&gt;
  &lt;script src="http://code.angularjs.org/2.0.0-beta.17/angular2.dev.js"&gt;&lt;/script&gt;
  &lt;script src="http://code.angularjs.org/2.0.0-beta.17/router.dev.js"&gt;&lt;/script&gt;
  
  
  &lt;!-- 2. Configure SystemJS --&gt;
  &lt;script&gt;
    System.config({
      transpiler: 'typescript',
      typescriptOptions: { emitDecoratorMetadata: true },
      packages: {'components': {defaultExtension: 'ts'}}
    });
    System.import('components/boot')
          .then(null, console.error.bind(console));
  &lt;/script&gt;
  </code></pre>
  
  <p>Note that I don't have router_1 variable anywhere in my code. I appreciate guidance. thanks.</p>