Cannot find module 'rxjs-compat' in Angular 9

Error - Cannot find module 'rxjs-compat'. Complete error look like this.

ERROR in node_modules/rxjs/Rx.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat'


Root Cause - When you update your angular application from Angular 2/4/5 to Greater versions of Angular then some times you face this error.

Angular CLI does not add 'rxjs-compat' package automatically or some issue in the package.

Solution - To get rid of this error install this package in the application.

npm install rxjs-compat

Thanks

Comments

Popular posts from this blog

Swagger for Azure functions: Undocumented TypeError: Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body. Fixed.

System.Net.Http.HttpClient' does not contain a definition for 'PostAsJsonAsync

Fixed: The required column was not present in the results of a 'FromSql' operation in asp.net core EF core