René's URL Explorer Experiment


Title: Module resolution using nodenext and a wildcard in package.json exports · Issue #55021 · microsoft/TypeScript · GitHub

Open Graph Title: Module resolution using nodenext and a wildcard in package.json exports · Issue #55021 · microsoft/TypeScript

X Title: Module resolution using nodenext and a wildcard in package.json exports · Issue #55021 · microsoft/TypeScript

Description: 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...

Open Graph Description: 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:...

X Description: 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 r...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/55021

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Module resolution using nodenext and a wildcard in package.json exports","articleBody":"# Bug Report\r\n\r\n\u003c!--\r\n  Please fill in each section completely. Thank you!\r\n-->\r\n\r\n### 🔎 Search Terms\r\n\r\nNodenext wildcard, type cannot be named\r\n\r\n### 🕗 Version & Regression Information\r\nThe bug only appears when using nodenext for module resolution\r\n\r\n### ⏯ Playground Link\r\n\r\nCloneable repo: https://github.com/geoffreytools/effect-test-tsc\r\n\r\n### 💻 Code\r\n\r\n```ts\r\nimport { TaggedClass } from '@effect/data/Data';\r\n// import '@effect/data/Equal';\r\n\r\nexport class Foo extends TaggedClass('Foo')\u003c{}> {}\r\n```\r\n\r\n### 🙁 Actual behavior\r\n\r\n```\r\nThe inferred type of 'Foo' cannot be named without a reference to '../node_modules/@effect/data/Equal'. This is likely not portable. A type annotation is necessary.\r\n```\r\n\r\n### 🙂 Expected behavior\r\n\r\nTo 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:\r\n\r\n```ts\r\n{\r\n  \"exports\": {\r\n    \"./Equal\": {\r\n      \"import\": {\r\n        \"types\": \"./Equal.d.ts\",\r\n        \"default\": \"./mjs/Equal.mjs\"\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nNote that the library uses a wildcard `./*` as each import map to a file and this is perfectly resolvable by node\r\n","author":{"url":"https://github.com/mikearnaldi","@type":"Person","name":"mikearnaldi"},"datePublished":"2023-07-14T14:02:44Z","url":"https://github.com/microsoft/TypeScript/issues/55021"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6c23bd36-f83c-bff5-3774-ddc589d7f9be
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8F8C:2EA7B6:104A33E:1559490:6B04F2D6
html-safe-nonce605f37948c3230c00c3d29e84e900e827e493c6daeb4d11742e49a530a4518b8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjhDOjJFQTdCNjoxMDRBMzNFOjE1NTk0OTA6NkIwNEYyRDYiLCJ2aXNpdG9yX2lkIjoiMjk1NzczNjkzNDMzNjcyNDA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2a79d8533ac87e13c1dba81b7dae5def69419dc584bfaff1e41f97e390403f62
hovercard-subject-tagissue:1804940793
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/55021/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bc83cdeb417e97734ee91ba24a3c9b83f4def0d8d392309acd04304af358652d/microsoft/TypeScript/issues/55021
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bc83cdeb417e97734ee91ba24a3c9b83f4def0d8d392309acd04304af358652d/microsoft/TypeScript/issues/55021
og:image:altBug 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:...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemikearnaldi
hostnamegithub.com
expected-hostnamegithub.com
Nonec0ff704de2671f716381d0ef36115cddb81606dd5397a5b003230bb8c02d623b
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecbe60d43d23e17438879ed212ad20068394651c4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/55021#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F55021
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F55021
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/55021
Reloadhttps://github.com/microsoft/TypeScript/issues/55021
Reloadhttps://github.com/microsoft/TypeScript/issues/55021
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests319 (319)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/55021
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/55021
Module resolution using nodenext and a wildcard in package.json exportshttps://github.com/microsoft/TypeScript/issues/55021#top
https://github.com/weswigham
Needs Investigationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
Rescheduledhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Rescheduled%22
TypeScript 5.7.0https://github.com/microsoft/TypeScript/milestone/208
https://github.com/mikearnaldi
Michael Arnaldi (mikearnaldi)https://github.com/mikearnaldi
on Jul 14, 2023https://github.com/microsoft/TypeScript/issues/55021#issue-1804940793
https://github.com/geoffreytools/effect-test-tschttps://github.com/geoffreytools/effect-test-tsc
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Needs Investigationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Jul 24, 2023https://github.com/microsoft/TypeScript/issues/55021#event-9904148042
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Wesley Wigham (weswigham)https://github.com/weswigham
on Jul 24, 2023https://github.com/microsoft/TypeScript/issues/55021#event-9904148551
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 5.3.0https://github.com/microsoft/TypeScript/milestone/189
on Jul 24, 2023https://github.com/microsoft/TypeScript/issues/55021#event-9904148979
https://github.com/datner
Datner (datner)https://github.com/datner
on Aug 27, 2023https://github.com/microsoft/TypeScript/issues/55021#issuecomment-1694661338
https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Nov 3, 2023https://github.com/microsoft/TypeScript/issues/55021#issuecomment-1792957654
#56107https://github.com/microsoft/TypeScript/issues/56107
#56107https://github.com/microsoft/TypeScript/issues/56107
Datner (@datner)https://github.com/datner
https://github.com/mikearnaldi
Michael Arnaldi (mikearnaldi)https://github.com/mikearnaldi
on Nov 4, 2023https://github.com/microsoft/TypeScript/issues/55021#issuecomment-1793333945
#56107https://github.com/microsoft/TypeScript/issues/56107
#56107https://github.com/microsoft/TypeScript/issues/56107
Datner (@datner)https://github.com/datner
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Rescheduledhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Rescheduled%22
on Mar 4, 2024https://github.com/microsoft/TypeScript/issues/55021#event-12005015978
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 5.3.0https://github.com/microsoft/TypeScript/milestone/189
TypeScript 5.5.0https://github.com/microsoft/TypeScript/milestone/179
on Mar 4, 2024https://github.com/microsoft/TypeScript/issues/55021#event-12005025983
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 5.5.0https://github.com/microsoft/TypeScript/milestone/179
TypeScript 5.7.0https://github.com/microsoft/TypeScript/milestone/208
on Jul 26, 2024https://github.com/microsoft/TypeScript/issues/55021#event-13666290676
Johannes Schickling (schickling)https://github.com/schickling
on Jul 30, 2025https://github.com/microsoft/TypeScript/issues/55021#event-18892197071
Minimal TypeScript portable type issue reproductionhttps://github.com/schickling-repros/2025-01-typescript-portable-type-issue/commit/3abf45c97cf4d4b16132e7fc01781713178f88ec
3abf45chttps://github.com/schickling-repros/2025-01-typescript-portable-type-issue/commit/3abf45c97cf4d4b16132e7fc01781713178f88ec
https://github.com/schickling
Johannes Schickling (schickling)https://github.com/schickling
on Jul 30, 2025https://github.com/microsoft/TypeScript/issues/55021#issuecomment-3135040379
https://github.com/schickling-repros/2025-01-typescript-portable-type-issuehttps://github.com/schickling-repros/2025-01-typescript-portable-type-issue
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jul 30, 2025https://github.com/microsoft/TypeScript/issues/55021#issuecomment-3137379551
https://github.com/Microsoft/TypeScript/wiki/FAQ#the-inferred-type-of-x-cannot-be-named-without-a-reference-to-y-this-is-likely-not-portable-a-type-annotation-is-necessaryhttps://github.com/Microsoft/TypeScript/wiki/FAQ#the-inferred-type-of-x-cannot-be-named-without-a-reference-to-y-this-is-likely-not-portable-a-type-annotation-is-necessary
https://github.com/fregante
fregantehttps://github.com/fregante
on Jul 30, 2025https://github.com/microsoft/TypeScript/issues/55021#issuecomment-3137426501
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jul 30, 2025https://github.com/microsoft/TypeScript/issues/55021#issuecomment-3137454113
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/55021
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/55021
Wesley Wigham (weswigham)https://github.com/weswigham
Needs Investigationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
Rescheduledhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Rescheduled%22
TypeScript 5.7.0https://github.com/microsoft/TypeScript/milestone/208
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.