Property 'do' does not exist on type 'Observable'

后端 未结 5 1337
遇见更好的自我
遇见更好的自我 2021-02-01 02:04

After upgrading to Angular 6.0 and Rxjs to 6.0 I receive the following compilation error:

Property \'do\' does not exist on type \'Observable\'.

Her

5条回答
  •  时光说笑
    2021-02-01 02:50

    Just use in your typescript file:

    import 'rxjs/add/operator/do';
    

    as simple as that. Thanks.

提交回复
热议问题