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

前端 未结 19 2126
一向
一向 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:32

    thanks the answer of zmag and Rahul Sharma, it works! @zmag @Rahul Sharma

      "rxjs": "5.4.1",
      "typescript": "~2.4.0"
    

    my problem is as follow:

    typings/globals/core-js/index.d.ts:3:14 - error TS2300: Duplicate identifier

    Make changes as.

    GO to Package.json file and modify the below configuration

      "rxjs": "5.4.1",
      "typescript": "~2.4.0"
    

提交回复
热议问题