Title: Maximum call stack size exceeded when compiling tsx · Issue #46021 · microsoft/TypeScript · GitHub
Open Graph Title: Maximum call stack size exceeded when compiling tsx · Issue #46021 · microsoft/TypeScript
X Title: Maximum call stack size exceeded when compiling tsx · Issue #46021 · microsoft/TypeScript
Description: Bug Report Compilation of tsx file throws generic error RangeError: Maximum call stack size exceeded. When the file doesn't contain any tsx element the compilation works as expected. Possible duplicate of: #45632 🔎 Search Terms Maximum c...
Open Graph Description: Bug Report Compilation of tsx file throws generic error RangeError: Maximum call stack size exceeded. When the file doesn't contain any tsx element the compilation works as expected. Possible dupli...
X Description: Bug Report Compilation of tsx file throws generic error RangeError: Maximum call stack size exceeded. When the file doesn't contain any tsx element the compilation works as expected. Possible d...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/46021
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Maximum call stack size exceeded when compiling tsx","articleBody":"# Bug Report\r\n\r\nCompilation of tsx file throws generic error `RangeError: Maximum call stack size exceeded`. When the file doesn't contain any tsx element the compilation works as expected.\r\n\r\nPossible duplicate of:\r\n#45632\r\n\r\n### 🔎 Search Terms\r\n\r\nMaximum call stack size exceeded\r\n\r\n### 🕗 Version & Regression Information\r\n\r\n4.3 and newer (also tested on 4.5.0-dev.20210923)\r\n\r\n### ⏯ Playground Link\r\n\r\n[Playground link with relevant code](https://www.typescriptlang.org/play?declaration=false&jsx=1&ts=4.4.2#code/JYOwLgpgTgZghgYwgAgJIBE5jgHgLIQgCuqkAtgGpxTBzjIQAekIAJgM7IAyw7YpEStVr0AvN179yVGnTAA6APIgIPFQD5kAbwCwAKGSHkZQiXLsZIsAH4AXMgLEBQ2eADc+gL779MIiAQwYAB7EAdTfFNnSzkGZkIOCT5o4VjxHmTpVPAlFTUIdQAKfSNkViw4ewwKyKcs1zB1fQBKbRKjBFC+ZAAbSRSG5HFy7HkTOsELbLBka2skqUEYnOVVUAgPPXbDAHod5AA5UIBaMHZGZAA3aHYQsM6yAAdgHohOMGDkACt2HZ+LuCcJiPCCBCCsbbIPZQCBgIhQMIZRZkQpaS7Tex9TJLaaeZqbSF7ZBnC7XKC3UJlYJvEAAchmD2er2QdFYxIAFlBggB3IFQLlQFmcBB0ZAAIxQ7AghGQoDKEEuH2CPV+nRA7GVEEhMLhCOQOCRziu01EWixyOWYE8UPUm28Wz0YAAniC0IbyJhsENtMaGvZ3TiGvIAILo7BQNzIa0AHx96L9CwGVlyaxUkc8BL0pjIifqVjaBiMq3yABpIaGKlAy3p7b5-IE7rnBIUAPojSpu-oeiqtXSFww6+FhYg9HqRrz6IA)\r\n\r\n### 🙁 Actual behavior\r\n\r\nRangeError: Maximum call stack size exceeded\r\n at Object.isFunctionLikeOrClassStaticBlockDeclaration (\\node_modules\\typescript\\lib\\tsc.js:9813:27)\r\n at isBlockScope (\\node_modules\\typescript\\lib\\tsc.js:11161:28)\r\n at \\node_modules\\typescript\\lib\\tsc.js:11242:73\r\n at Object.findAncestor (\\npm\\node_modules\\typescript\\lib\\tsc.js:9189:26)\r\n at Object.getEnclosingBlockScopeContainer (\\npm\\node_modules\\typescript\\lib\\tsc.js:11242:19)\r\n at checkNestedBlockScopedBinding (\\npm\\node_modules\\typescript\\lib\\tsc.js:57015:32)\r\n at checkIdentifier (\\npm\\node_modules\\typescript\\lib\\tsc.js:56921:13)\r\n at checkExpressionWorker (\\npm\\node_modules\\typescript\\lib\\tsc.js:63702:28)\r\n at checkExpression (\\npm\\node_modules\\typescript\\lib\\tsc.js:63657:38)\r\n at checkJsxExpression (\\npm\\node_modules\\typescript\\lib\\tsc.js:59059:28)\r\n\r\n### 🙂 Expected behavior\r\n\r\ncompilation with no error\r\n","author":{"url":"https://github.com/martind-gmc","@type":"Person","name":"martind-gmc"},"datePublished":"2021-09-23T10:28:00Z","url":"https://github.com/microsoft/TypeScript/issues/46021"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:74a704c4-6de8-d522-fdc4-0c41006ef84c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F92:3F8A67:201C584:2ADF744:6B018402 |
| html-safe-nonce | 571d2325a17aae2bc0f63ea2c92974ca590f6c115559a03f3a8578aa5e72c1de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjkyOjNGOEE2NzoyMDFDNTg0OjJBREY3NDQ6NkIwMTg0MDIiLCJ2aXNpdG9yX2lkIjoiMjk4ODg1MDA1NjQwNjMzNjUxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a1d6c5e2db81297250286eb8bbb16e8eae028df236e18a89b294c04c74b9509f |
| hovercard-subject-tag | issue:1005263992 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/46021/issue_layout |
| twitter:image | https://opengraph.githubassets.com/966fa14466a12691846199d669444be158c1b4f9d731596f59eb517a2c90590b/microsoft/TypeScript/issues/46021 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/966fa14466a12691846199d669444be158c1b4f9d731596f59eb517a2c90590b/microsoft/TypeScript/issues/46021 |
| og:image:alt | Bug Report Compilation of tsx file throws generic error RangeError: Maximum call stack size exceeded. When the file doesn't contain any tsx element the compilation works as expected. Possible dupli... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | martind-gmc |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width