rxjs/Subject.d.ts error : Class 'Subject' incorrectly extends base class 'Observable'

前端 未结 19 2101
一向
一向 2020-12-01 09:55

I extracted sample template code from this tutorial and did below two steps to get started -

  1. npm install // worked fine and created node_modules folder
19条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-01 10:37

    As per this you need update typescript 2.3.4 or rxjs 6 alpha

    go the your package.json file in your project update typescript or rxjs version. Example

    "typescript": "2.3.4"
    

    do npm install

    update(06/29/2017):-

    As per the comments typescript "2.4.0" working.

提交回复
热议问题