RXJS 7 - TS2693: 'AjaxDirection' only refers to a type, but is being used as a value here

318 Views Asked by At

I upgraded my angular 11 projects RxJS 7 and in web storm it suggested me to change some Subject imports, Once I update these imports I am getting below error


ERROR: node_modules/rxjs/dist/types/internal/ajax/types.d.ts:9:40 - error TS1110: Type expected.

9 export declare type AjaxResponseType = `${AjaxDirection}_${ProgressEventType}`;
                                         ~~~
node_modules/rxjs/dist/types/internal/ajax/types.d.ts:9:43 - error TS2693: 'AjaxDirection' only refers to a type, but is being used as a value here.

9 export declare type AjaxResponseType = `${AjaxDirection}_${ProgressEventType}`;
                                            ~~~~~~~~~~~~~
node_modules/rxjs/dist/types/internal/ajax/types.d.ts:9:60 - error TS2693: 'ProgressEventType' only refers to a type, but is being used as a value here.

9 export declare type AjaxResponseType = `${AjaxDirection}_${ProgressEventType}`;
                                                             ~~~~~~~~~~~~~~~~~

An unhandled exception occurred: node_modules/rxjs/dist/types/internal/ajax/types.d.ts:9:40 - error TS1110: Type expected.

anyone resolved this issue of tried to migrate to RxJs7?

0

There are 0 best solutions below