LoginSignup
2
0

More than 5 years have passed since last update.

rxjs5.xはtypescript2.4.1だとfailする

Posted at

0. どんなエラーか

  • ng serve実行するとコンパイルエラー
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'.

こんな感じです。

1. 解決策

  • typescriptをlatestから2.4.0に戻す
  • yarn add typescript@2.4.0など。

2. その他

  • githubのissueは多分これ
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0