René's URL Explorer Experiment


Title: Compiler crash with `RangeError: Map maximum size exceeded` · Issue #55630 · microsoft/TypeScript · GitHub

Open Graph Title: Compiler crash with `RangeError: Map maximum size exceeded` · Issue #55630 · microsoft/TypeScript

X Title: Compiler crash with `RangeError: Map maximum size exceeded` · Issue #55630 · microsoft/TypeScript

Description: 🔎 Search Terms RangeError: Map maximum size exceeded RangeError: Value undefined out of range for undefined options property undefined (node 16) react types antd types fontawesome types 🕗 Version & Regression Information This is a crash ...

Open Graph Description: 🔎 Search Terms RangeError: Map maximum size exceeded RangeError: Value undefined out of range for undefined options property undefined (node 16) react types antd types fontawesome types 🕗 Version &...

X Description: 🔎 Search Terms RangeError: Map maximum size exceeded RangeError: Value undefined out of range for undefined options property undefined (node 16) react types antd types fontawesome types 🕗 Version &...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Compiler crash with `RangeError: Map maximum size exceeded`","articleBody":"### 🔎 Search Terms\r\n\r\nRangeError: Map maximum size exceeded\r\nRangeError: Value undefined out of range for undefined options property undefined (node 16)\r\nreact types\r\nantd types\r\nfontawesome types\r\n\r\n\r\n### 🕗 Version & Regression Information\r\n\r\n- This is a crash\r\n- I've tested this with the latest nightly (5.3.0-dev.20230904), 5.2.2 and 5.1.6\r\n- I was unable to test this on prior versions because I've converted my code to ts and it started to occur\r\n\r\n\r\n### ⏯ Playground Link\r\n\r\n_No response_\r\n\r\n### 💻 Code\r\n\r\nSimple file:\r\n```tsx\r\nimport React from 'react';\r\nimport {Menu} from 'antd';\r\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\r\n\r\ntype IconProp = React.ComponentProps\u003ctypeof FontAwesomeIcon>['icon'];\r\n\r\ntype Props =\r\n  & React.PropsWithChildren\u003c{ icon: IconProp }>\r\n  & React.ComponentProps\u003ctypeof Menu.Item>\r\n\r\nexport const Item = ({icon}: Props) => {\r\n  return \u003cFontAwesomeIcon icon={icon}/>;\r\n};\r\n```\r\n\r\npackage.json\r\n```json\r\n{\r\n  \"name\": \"ts-compiler-crash\",\r\n  \"version\": \"1.0.0\",\r\n  \"main\": \"index.js\",\r\n  \"license\": \"MIT\",\r\n  \"dependencies\": {\r\n    \"@fortawesome/fontawesome-svg-core\": \"^6.4.2\",\r\n    \"@fortawesome/react-fontawesome\": \"^0.2.0\",\r\n    \"@types/react\": \"^18.2.21\",\r\n    \"typescript\": \"^5.2.2\",\r\n    \"antd\": \"~4.2.0\"\r\n  }\r\n}\r\n```\r\n\r\ntsconfig.json\r\n```json\r\n{\r\n  \"compilerOptions\": {\r\n    \"declaration\": false,\r\n    \"emitDecoratorMetadata\": true,\r\n    \"experimentalDecorators\": true,\r\n    \"lib\": [\"es2019\", \"es6\", \"dom\"],\r\n    \"module\": \"es6\",\r\n    \"moduleResolution\": \"node\",\r\n    \"sourceMap\": true,\r\n    \"target\": \"es6\",\r\n    \"jsx\": \"react\",\r\n    \"noEmit\": true,\r\n    \"skipLibCheck\": true,\r\n    \"allowSyntheticDefaultImports\": true,\r\n    \"allowJs\": true,\r\n    \"strict\": true,\r\n    \"noImplicitAny\": true,\r\n    \"strictNullChecks\": true,\r\n    \"noFallthroughCasesInSwitch\": true\r\n  }\r\n}\r\n```\r\n\r\n\r\n### 🙁 Actual behavior\r\n\r\nCompiler crashes with\r\n\r\n```\r\nyarn tsc\r\nyarn run v1.22.19\r\n$ /Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/.bin/tsc\r\n/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:116479\r\n      throw e;\r\n      ^\r\n\r\nRangeError: Map maximum size exceeded\r\n    at Map.set (\u003canonymous>)\r\n    at recursiveTypeRelatedTo (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60782:18)\r\n    at isRelatedTo (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60199:122)\r\n    at typeRelatedToSomeType (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60460:25)\r\n    at unionOrIntersectionRelatedTo (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60380:16)\r\n    at structuredTypeRelatedToWorker (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60959:23)\r\n    at structuredTypeRelatedTo (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60801:21)\r\n    at recursiveTypeRelatedTo (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60754:19)\r\n    at isRelatedTo (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60199:122)\r\n    at eachTypeRelatedToType (/Users/gabrielrohden/Desktop/Projects/Personal/ts-compiler-crash/node_modules/typescript/lib/tsc.js:60555:25)\r\n\r\nNode.js v18.17.1\r\nerror Command failed with exit code 1.\r\n```\r\n\r\n### 🙂 Expected behavior\r\n\r\nThe compiler to at least not crash :/\r\n\r\n### Additional information about the issue\r\n\r\nThere's a related issue https://github.com/microsoft/TypeScript/issues/50290\r\n\r\nBut its closed, so I'm opening a new one since that one wasn't really [fixed but workarounded](https://github.com/microsoft/TypeScript/issues/50290#issuecomment-1228824018)","author":{"url":"https://github.com/Grohden","@type":"Person","name":"Grohden"},"datePublished":"2023-09-04T20:24:21Z","url":"https://github.com/microsoft/TypeScript/issues/55630"}

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:aa57bc9f-d8ef-57c4-6521-279acc7fd48d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id83B8:16AB79:2B8FA4A:3767080:6B01B119
html-safe-nonce156a5a08f064adf3824265e4ad8f3b086d1feaf652efa3b78acddd8eced5aa9b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0I4OjE2QUI3OToyQjhGQTRBOjM3NjcwODA6NkIwMUIxMTkiLCJ2aXNpdG9yX2lkIjoiOTg2NDgxOTkzMTQ5NjkwMTM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac440a7e23e5d4e2ab6d333ff10e905ec55fc0938a69642163f06f785d6027bef5
hovercard-subject-tagissue:1880828801
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/55630/issue_layout
twitter:imagehttps://opengraph.githubassets.com/25b74a807b9a5c1998405991c9dcca5e14c3dacc69cefb8783586680fdaf1628/microsoft/TypeScript/issues/55630
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/25b74a807b9a5c1998405991c9dcca5e14c3dacc69cefb8783586680fdaf1628/microsoft/TypeScript/issues/55630
og:image:alt🔎 Search Terms RangeError: Map maximum size exceeded RangeError: Value undefined out of range for undefined options property undefined (node 16) react types antd types fontawesome types 🕗 Version &...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameGrohden
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/55630#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F55630
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%2F55630
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/55630
Reloadhttps://github.com/microsoft/TypeScript/issues/55630
Reloadhttps://github.com/microsoft/TypeScript/issues/55630
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)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/55630
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/55630
#55851https://github.com/microsoft/TypeScript/pull/55851
Compiler crash with RangeError: Map maximum size exceededhttps://github.com/microsoft/TypeScript/issues/55630#top
#55851https://github.com/microsoft/TypeScript/pull/55851
https://github.com/ahejlsberg
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
CrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Crash%22
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
TypeScript 5.3.0https://github.com/microsoft/TypeScript/milestone/189
https://github.com/Grohden
Gabriel Rohden (Grohden)https://github.com/Grohden
on Sep 4, 2023https://github.com/microsoft/TypeScript/issues/55630#issue-1880828801
#50290https://github.com/microsoft/TypeScript/issues/50290
fixed but workaroundedhttps://github.com/microsoft/TypeScript/issues/50290#issuecomment-1228824018
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Gabriela Araujo Britto (gabritto)https://github.com/gabritto
on Sep 6, 2023https://github.com/microsoft/TypeScript/issues/55630#event-10297269118
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Sep 6, 2023https://github.com/microsoft/TypeScript/issues/55630#event-10297270788
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
TypeScript 5.3.0https://github.com/microsoft/TypeScript/milestone/189
on Sep 6, 2023https://github.com/microsoft/TypeScript/issues/55630#event-10297272430
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Sep 22, 2023https://github.com/microsoft/TypeScript/issues/55630#issuecomment-1731740610
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Sep 22, 2023https://github.com/microsoft/TypeScript/issues/55630#event-10449466199
https://github.com/Grohden
Gabriel Rohden (Grohden)https://github.com/Grohden
on Sep 22, 2023https://github.com/microsoft/TypeScript/issues/55630#issuecomment-1731749283
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Sep 25, 2023https://github.com/microsoft/TypeScript/issues/55630#issuecomment-1732706424
Gabriel Rohden (@Grohden)https://github.com/Grohden
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Sep 25, 2023https://github.com/microsoft/TypeScript/issues/55630#issuecomment-1732776374
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
CrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Crash%22
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Sep 25, 2023https://github.com/microsoft/TypeScript/issues/55630#event-10456642834
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Gabriela Araujo Britto (gabritto)https://github.com/gabritto
on Sep 25, 2023https://github.com/microsoft/TypeScript/issues/55630#event-10456643595
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
on Sep 25, 2023https://github.com/microsoft/TypeScript/issues/55630#event-10456689931
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#55851https://github.com/microsoft/TypeScript/pull/55851
on Sep 26, 2023https://github.com/microsoft/TypeScript/issues/55630#event-10480755988
microsofthttps://github.com/microsoft
on Oct 22, 2025https://github.com/microsoft/TypeScript/issues/55630#event-20419597885
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/55630
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/55630
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
CrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Crash%22
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
TypeScript 5.3.0https://github.com/microsoft/TypeScript/milestone/189
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

Viewport: width=device-width


URLs of crawlers that visited me.