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

A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance