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

前端 未结 16 938
甜味超标
甜味超标 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:41

    This issue is caused by version of typescript installed was not compatible with that of the rxjs installed.Installation of typescript as mentioned below helped me install the compatible version of typescript with that of the angular packages already installed.You can resolve the issue by the below command

    npm install typescript 
    

    This worked for me

提交回复
热议问题