Skip to content

Fix type resolution for subpath exports when using moduleResolution: node - #2486

Merged
Pessimistress merged 1 commit into
visgl:masterfrom
connor-baer:fix/type-exports
Feb 7, 2025
Merged

Pessimistress merged 1 commit into
visgl:masterfrom
connor-baer:fix/type-exports

Conversation

@connor-baer

Copy link
Copy Markdown
Contributor

TypeScript isn't able to resolve the types for subpath exports (e.g. react-map-gl/mapbox) when using moduleResolution: node in consuming apps (see this StackOverflow issue).

Adding typesVersions with * to target all TypeScript versions works around this limitation.

@Pessimistress Pessimistress left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Pessimistress
Pessimistress merged commit 166138c into visgl:master Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants