Typescript 1.8 Angular2 rc1 and injecting a JavaScript library (auth0.js); Cannot find module 'auth0'
<p>I'm trying to use the auth0.js library in my Angular2 rc1 TypeScript project to do a custom signup. I need to inject the auth0 lib into my components and getting a "Cannot find module 'auth0'" from TypeScript.</p>

<p><strong>configure</strong></p>

<pre><code>npm install auth0-js --save
typings install dt~auth0 --save --global
</code></pre>

<p><strong>signupForm.component.ts:</strong></p>

<pre><code>import * as auth0 from "auth0-js"; //TypeScript: TS2307: Cannot find module 'auth0-js'

@Component({...})
export class SignupForm {
  constructor(private auth:auth0){}
  ...
}
</code></pre>

<p><strong>main.ts</strong></p>

<pre><code>...
import * as auth0 from "auth0-js"; //TypeScript: TS2307: Cannot find module 'auth0-js'

bootstrap(..., [provide(auth0, { useFactory: () =&gt; {
    return new auth0({...});
  }})
]);
</code></pre>