Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

RXJS Error #1492

Closed
p3x-robot opened this issue Jun 28, 2017 · 3 comments
Closed

RXJS Error #1492

p3x-robot opened this issue Jun 28, 2017 · 3 comments

Comments

@p3x-robot
Copy link

Ciao!
How are you?
I have no idea, why I cannot build now. It was working, now I get this error:

ERROR in [at-loader] ./node_modules/rxjs/Subject.d.ts:16:22 
    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'.

ERROR in [at-loader] ./node_modules/rxjs/observable/dom/WebSocketSubject.d.ts:24:22 
    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'.

Do you know what it understand?

@RobAltena
Copy link

See #1487. (if this happened after upgrading Typescript to 2.4.1).

@claudiuconstantin
Copy link

It is due to the Typescript 2.4 upgrade, which brings some breaking changes. Some folks suggested upgrading the rxjs package to 6.0.0-alpha.0, but that didn't work for me, unfortunately...

@paulpdaniels
Copy link
Contributor

Wrong repo, RxJS 5 is maintained at https://github.com/ReactiveX/rxjs. There are already several issues tracking this problem there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants