-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
Describe the bug
When importing rxjs in a project using TypeScript@next with the "module": "nodenext" (experimental ESM support) it fails to locate the associated types. As seen in this TypeScript playground: Playground Link.
Expected behavior
TypeScript@next is experimental so I suppose I don't expect it to work. But the API seems fairly stable, so I am raising this issue to track the change. The exports spec defines an optional types field, which if used in rxjs resolved the issue (I have tried this with a patch locally).
Reproduction code
import { Observable, Subject } from 'rxjs';Reproduction URL
Version
7.4.0
Environment
- Node.js@16.13.2
- TypeScript@4.6.0-dev.20220204
Additional context
Related discussion in the TypeScript repo: microsoft/TypeScript#46452 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels