Rxjs/internal/types.d.ts error

I was trying to build chat app and successfully did it. But when i ran ionic cordova build android i got the following error.

[app-scripts] [14:46:38]  ionic-app-scripts 3.2.1
[app-scripts] [14:46:38]  watch started ...
[app-scripts] [14:46:38]  build dev started ...
[app-scripts] [14:46:38]  clean started ...
[app-scripts] [14:46:38]  clean finished in 9 ms
[app-scripts] [14:46:38]  copy started ...
[app-scripts] [14:46:39]  deeplinks started ...
[app-scripts] [14:46:39]  deeplinks finished in 53 ms
[app-scripts] [14:46:39]  transpile started ...
[app-scripts] [14:46:44]  typescript: E:/Ionic/retail/node_modules/rxjs/internal/types.d.ts, line: 81
[app-scripts]             ';' expected.
[app-scripts]       L81:  export declare type ObservedValueOf<O> = O extends ObservableInput<infer T> ? T : never;
[app-scripts] [14:46:44]  typescript: E:/Ionic/retail/node_modules/rxjs/internal/types.d.ts, line: 81
[app-scripts] [14:46:44]  typescript: E:/Ionic/retail/node_modules/rxjs/internal/types.d.ts, line: 81
[app-scripts]             ';' expected.
[app-scripts]       L81:  export declare type ObservedValueOf<O> = O extends ObservableInput<infer T> ? T : never;
[app-scripts]             Expression expected.
[app-scripts]       L81:  export declare type ObservedValueOf<O> = O extends ObservableInput<infer T> ? T : never;
[app-scripts]             'ObservableInput' only refers to a type, but is being used as a value here.
[app-scripts] [14:46:44]  typescript: E:/Ionic/retail/node_modules/rxjs/internal/types.d.ts, line: 81
[app-scripts] [14:46:44]  typescript: E:/Ionic/retail/node_modules/rxjs/internal/types.d.ts, line: 81
[app-scripts] [14:46:44]  typescript: E:/Ionic/retail/node_modules/rxjs/internal/types.d.ts, line: 81
[app-scripts]       L81:  export declare type ObservedValueOf<O> = O extends ObservableInput<infer T> ? T : never;
[app-scripts]             Cannot find name 'infer'.
[app-scripts]       L81:  export declare type ObservedValueOf<O> = O extends ObservableInput<infer T> ? T : never;
[app-scripts]             Cannot find name 'T'.
[app-scripts]       L81:  export declare type ObservedValueOf<O> = O extends ObservableInput<infer T> ? T : never;
[app-scripts]             Cannot find name 'T'.
[app-scripts]       L81:  export declare type ObservedValueOf<O> = O extends ObservableInput<infer T> ? T : never;
[app-scripts]             'never' only refers to a type, but is being used as a value here.
[app-scripts]       L81:  export declare type ObservedValueOf<O> = O extends ObservableInput<infer T> ? T : never;
[app-scripts] [14:46:44]  typescript: E:/Ionic/retail/node_modules/rxjs/internal/types.d.ts, line: 81
[app-scripts] [14:46:44]  typescript: E:/Ionic/retail/node_modules/rxjs/internal/types.d.ts, line: 81

solved it, by npm install rxjs@6.0.0 --save

6 Likes

rxjs version 6.3.3 seems to be latest version without this error

thanks its works for me / i dont know why there found some loop holes

thank u very much, its work for me

thanks it works for me

Thank you so much … It works for me