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

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

    I just needed to edit the file and add the semicolon at the final line after 0 as shown here:

    Go to the path [project directory]/node_modules/rxjs/internal and open the file types.d.ts as administrator, move to the final of the file and add a semicolon.

    Original code: export declare type ObservedValueOf = O extends ObservableInput ? T : never;

    Modified code: export declare type ObservedValueOf = O; extends ObservableInput ? T : never;

提交回复
热议问题