Title: Regression from 4.2 to 4.3 : RangeError: Maximum call stack size exceeded · Issue #45632 · microsoft/TypeScript · GitHub
Open Graph Title: Regression from 4.2 to 4.3 : RangeError: Maximum call stack size exceeded · Issue #45632 · microsoft/TypeScript
X Title: Regression from 4.2 to 4.3 : RangeError: Maximum call stack size exceeded · Issue #45632 · microsoft/TypeScript
Description: Bug Report Since TypeScript 4.3 we are unable to run TypeScript check on our projet (more than 10.000 ts modules) We are trying to upgrade from TypeScript 4.0 to 4.4 and stuck on 4.2 The error is quite generic RangeError: Maximum call st...
Open Graph Description: Bug Report Since TypeScript 4.3 we are unable to run TypeScript check on our projet (more than 10.000 ts modules) We are trying to upgrade from TypeScript 4.0 to 4.4 and stuck on 4.2 The error is q...
X Description: Bug Report Since TypeScript 4.3 we are unable to run TypeScript check on our projet (more than 10.000 ts modules) We are trying to upgrade from TypeScript 4.0 to 4.4 and stuck on 4.2 The error is q...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/45632
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Regression from 4.2 to 4.3 : RangeError: Maximum call stack size exceeded","articleBody":"# Bug Report\r\n\r\n\u003c!--\r\n Please fill in each section completely. Thank you!\r\n-->\r\n\r\nSince TypeScript 4.3 we are unable to run TypeScript check on our projet (more than 10.000 ts modules)\r\nWe are trying to upgrade from TypeScript 4.0 to 4.4 and stuck on 4.2\r\n\r\nThe error is quite generic `RangeError: Maximum call stack size exceeded` \r\n\r\nIf there is a way to get more log or to see which module trigger this behavior it would help a lot!\r\n\r\nMaybe close to #44281?\r\n\r\n### 🔎 Search Terms\r\n\r\n\u003c!--\r\n What search terms did you use when trying to find an existing bug report?\r\n List them here so people in the future can find this one more easily.\r\n-->\r\n\r\n* 4.3\r\n* 4.4 \r\n* RangeError: Maximum call stack size exceeded\r\n* Circular dependency\r\n* Recursive\r\n\r\n### 🕗 Version & Regression Information\r\n\r\n\u003c!-- When did you start seeing this bug occur?\r\n\r\n\"Bugs\" that have existed in TS for a long time are very likely to be FAQs; refer to\r\n https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs\r\n\r\nIf possible, please try testing the nightly version of TS to see if it's already been fixed.\r\nFor npm: `typescript@next`\r\nThis is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly\r\n\r\nNote: The TypeScript Playground can be used to try older versions of TypeScript.\r\n\r\nPlease keep and fill in the line that best applies:\r\n-->\r\n\r\n- This changed between versions 4.2 and 4.3 (still present in next / 4.5-dev)\r\n\r\n### ⏯ Playground Link\r\n\r\n\u003c!--\r\n A link to a TypeScript Playground \"Share\" link which shows this behavior\r\n\r\n The TypeScript Workbench can be used for more complex setups, try\r\n https://www.typescriptlang.org/dev/bug-workbench/\r\n\r\n As a last resort, you can link to a repo, but these will be slower for us to investigate.\r\n-->\r\n\r\nSorry no playground I'm unable to isolate the part linked to the bug\r\n\r\n### 💻 Code\r\n\r\n\u003c!-- Please post the relevant code sample here as well-->\r\n```ts\r\n// We can quickly address your report if:\r\n// - The code sample is short. Nearly all TypeScript bugs can be demonstrated in 20-30 lines of code!\r\n// - It doesn't use external libraries. These are often issues with the type definitions rather than TypeScript bugs.\r\n// - The incorrectness of the behavior is readily apparent from reading the sample.\r\n// Reports are slower to investigate if:\r\n// - We have to pare too much extraneous code.\r\n// - We have to clone a large repo and validate that the problem isn't elsewhere.\r\n// - The sample is confusing or doesn't clearly demonstrate what's wrong.\r\n```\r\n\r\n### 🙁 Actual behavior\r\n\r\n\u003c!-- What happened, and why it was wrong -->\r\n\r\n```\r\n tsc --noEmit --project tsconfig.ci.json\r\n/project/node_modules/typescript/lib/tsc.js:90672\r\n throw e;\r\n ^\r\n\r\nRangeError: Maximum call stack size exceeded\r\n at checkExpressionWorker (/project/node_modules/typescript/lib/tsc.js:62461:39)\r\n at checkExpression (/project/node_modules/typescript/lib/tsc.js:62428:38)\r\n at getTypeOfExpression (/project/node_modules/typescript/lib/tsc.js:62382:24)\r\n at getMatchingUnionConstituentForObjectLiteral (/project/node_modules/typescript/lib/tsc.js:54126:40)\r\n at discriminateContextualTypeByObjectMembers (/project/node_modules/typescript/lib/tsc.js:56777:20)\r\n at getApparentTypeOfContextualType (/project/node_modules/typescript/lib/tsc.js:56789:93)\r\n at getContextualTypeForObjectLiteralElement (/project/node_modules/typescript/lib/tsc.js:56696:24)\r\n at getContextualType (/project/node_modules/typescript/lib/tsc.js:56855:28)\r\n at hasContextualTypeWithNoGenericTypes (/project/node_modules/typescript/lib/tsc.js:55760:17)\r\n at getNarrowableTypeForReference (/project/node_modules/typescript/lib/tsc.js:55766:53)\r\nerror Command failed with exit code 1.\r\n```\r\n\r\n### 🙂 Expected behavior\r\n\r\n\u003c!-- What you expected to happen instead, and why -->\r\n\r\nno error :)","author":{"url":"https://github.com/JSteunou","@type":"Person","name":"JSteunou"},"datePublished":"2021-08-30T08:39:31Z","url":"https://github.com/microsoft/TypeScript/issues/45632"}
| 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:9b349360-b07e-06ab-96af-0bdaf21c714d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A33E:3BAE81:B2382:EC21E:6B015955 |
| html-safe-nonce | 1306c5f5d178752b6fabf9e2424e7cc3acdca65d3113616d93491799854dabf1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzNFOjNCQUU4MTpCMjM4MjpFQzIxRTo2QjAxNTk1NSIsInZpc2l0b3JfaWQiOiI3OTU1MzkxMTA4OTYyNDA4Nzg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5ca85dd8b325c9ebdc1c2156a51e31763224253ab32b564ed4059bcc824375db |
| hovercard-subject-tag | issue:982541315 |
| 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/45632/issue_layout |
| twitter:image | https://opengraph.githubassets.com/70d83482b853984410ef38cfb665247b86fa7a3635539f8c20060226e3597a40/microsoft/TypeScript/issues/45632 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/70d83482b853984410ef38cfb665247b86fa7a3635539f8c20060226e3597a40/microsoft/TypeScript/issues/45632 |
| og:image:alt | Bug Report Since TypeScript 4.3 we are unable to run TypeScript check on our projet (more than 10.000 ts modules) We are trying to upgrade from TypeScript 4.0 to 4.4 and stuck on 4.2 The error is q... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JSteunou |
| 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