Module resolution using nodenext and a wildcard in package.json exports #55021
Labels
Needs Investigation
This issue needs a team member to investigate its status.
Rescheduled
This issue was previously scheduled to an earlier milestone
Milestone
Bug Report
🔎 Search Terms
Nodenext wildcard, type cannot be named
🕗 Version & Regression Information
The bug only appears when using nodenext for module resolution
⏯ Playground Link
Cloneable repo: https://github.com/geoffreytools/effect-test-tsc
💻 Code
🙁 Actual behavior
🙂 Expected behavior
To compile correctly, without using nodenext it works fine and the same issue doesn't apply to other transitive imports such as Hash that are identically exported. All goes away the very moment there is either an explicit import of
Equal
or when adding to the library package.json the following:Note that the library uses a wildcard
./*
as each import map to a file and this is perfectly resolvable by nodeThe text was updated successfully, but these errors were encountered: