Cannot find module 'rxjs' or its corresponding type declarations, after switching to rxjs 7

Viewed 1127

I'm facing this strange error after I have switched from rxjs 6.5 to rxjs 7. I'm not sure if it's a issue with the typings for rxjs 7 or if it's a issue with stackblitz (https://stackblitz.com/edit/rxjs-20-21-obs):

error on stacblitz

1 Answers

This should only happen while using stackblitz and not a real life project after rc.3

It is happening due to the recent changes and the major RXJS upgrade from version 6 to 7.

If you upgrade your Typescript version something greater than 4.2.x, you shouldn't face the issue in a real life project.

Right now it's still a pinned issue on github: https://github.com/ReactiveX/rxjs/issues/6350

I made a Q&A in this post as well because it effects the Angular framework as well: Cannot find module 'rxjs' or its corresponding type declarations.(2307) using stackblitz

Related