-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imports not resolving at all in some environments for RxJS 7. #6350
Comments
For information, it happens in real world too: example here (GitHub Actions checks of last commit of cyrilletuzi/angular-async-local-storage#642) I linked to CI so you can see the issue directly, but same thing happen inside of VS Code. |
after updating to typescript |
@gritschf it's possible that codesandbox and stackblitz are still not TS 4.2. But I thought that stackblitz was, at least. 🤔 |
Issue:
When trying to import anything in RxJS 7, in some environments, in particular, stackblitz.com and codesandbox.io, the
"rxjs"
module does not seem to resolve. It worked fine with[email protected]
, but not with[email protected]
. I suspect the references and thetypesVersions
addition are to blame. What a mess.It seems to work fine in most other "real world" environments, from my testing though.
Broken codesandbox
Broken stackblitz
Behavior:
Error message:
Cannot find module 'rxjs' or its corresponding type declarations.(2307)
Solution: rxjs@7 requires TypeScript 4.2 or higher please update TypeScript.
The text was updated successfully, but these errors were encountered: