I am new to Angularjs2, I am not able to build the application Angular2MVC referred in the article. I tried multiple solutions suggested over google, but still not able to resolve, I am receiving few errors as below:
1 Error Build:Class 'WebSocketSubject<t>' incorrectly extends base class 'AnonymousSubject<t>'. Angular2MVC F:\MyLabs\Angular2MVC\node_modules\rxjs\observable\dom\WebSocketSubject.d.ts 23
2.
export declare class Subject<T> extends Observable<T> implements ISubscription {
3.
Severity Code Description Project File Line Suppression State
Error TS2415 Class 'WebSocketSubject<T>' incorrectly extends base class 'AnonymousSubject<T>'.
Types of property 'lift' are incompatible.
Type '<R>(operator: Operator<T, R>) => WebSocketSubject<R>' is not assignable to type '<R>(operator: Operator<T, R>) => Observable<T>'.
Type 'WebSocketSubject<R>' is not assignable to type 'Observable<T>'.
Types of property 'operator' are incompatible.
Type 'Operator<any, R>' is not assignable to type 'Operator<any, T>'.
Type 'R' is not assignable to type 'T'. TypeScript Virtual Projects F:\MyLabs\Angular2MVC\node_modules\rxjs\observable\dom\WebSocketSubject.d.ts 23 Active
4.
Severity Code Description Project File Line Suppression State
Error TS2415 Class 'Subject<T>' incorrectly extends base class 'Observable<T>'.
Types of property 'lift' are incompatible.
Type '<R>(operator: Operator<T, R>) => Observable<T>' is not assignable to type '<R>(operator: Operator<T, R>) => Observable<R>'.
Type 'Observable<T>' is not assignable to type 'Observable<R>'.
Type 'T' is not assignable to type 'R'. TypeScript Virtual Projects F:\MyLabs\Angular2MVC\node_modules\rxjs\Subject.d.ts 16 Active
Thanks in advance,
Sunil Wagh
What I have tried:
I tried installing new version of TypeScript, I tried to install different versions of TypeScript like 2.4.0 etc, different version of rxjs in Package.json as suggested over google. Also I discarded package.json which is part of the article and tried to create new one with npm init from the command prompt, but the issue is still not resolved.