node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected error after installation of Angular 6

前端 未结 16 928
甜味超标
甜味超标 2020-12-22 17:15

I got an error of

node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: \';\' expected.

after the installation of Angular

相关标签:
16条回答
  • 2020-12-22 17:45

    It is working fine with me when I changed "rxjs" in package.json from "^6.0.0" to "6.0.0" and then run

    "npm i"

    0 讨论(0)
  • 2020-12-22 17:46

    I got the same error.reason might be due to version mismatch

    npm install rxjs@6.0.0 --save fix the error

    0 讨论(0)
  • 2020-12-22 17:48

    If you are using rxjs-compat then you also need to do following in order to fixed the issue. change the rxjs-compat version from

    "rxjs-compat": "^6.2.2" 
    

    to

    "rxjs-compat": "6.2.2"
    

    This works for me

    0 讨论(0)
  • 2020-12-22 17:53

    You need to do some changes in package.json

    Go to package.json and modify "rxjs": "^6.0.0" to "rxjs": "6.0.0"

    Then run npm update in your project

    0 讨论(0)
提交回复
热议问题