Angular 2: Two different types with this name exist : <p>In my Angular 2 app, I have following code:</p>

<pre><code>import { Observable } from 'rxjs/Rx';
import { Subscription } from '@angular-cli/ast-tools/node_modules/rxjs/Rx';
...
private broadcastDataSubject: BehaviorSubject&lt;Event&gt;;
...
let sub: Subscription = this.broadcastDataSubject.asObservable().subject(event).subscribe(() =&gt; this.bla());
</code></pre>

<p>Problem is in the last row, code will not complile because of:</p>

<p><strong>"Type 'Subscription' is not assignable to type 'Subscription'. Two different types with this name exist, but they are unrelated."</strong></p>

<p>I have same code in my second project and it runs without problem. </p>
