Title: Regression with TS 5. Type instantiation is excessively deep and possibly infinite.ts(2589) · Issue #53514 · microsoft/TypeScript · GitHub
Open Graph Title: Regression with TS 5. Type instantiation is excessively deep and possibly infinite.ts(2589) · Issue #53514 · microsoft/TypeScript
X Title: Regression with TS 5. Type instantiation is excessively deep and possibly infinite.ts(2589) · Issue #53514 · microsoft/TypeScript
Description: Bug Report 🔎 Search Terms Type instantiation is excessively deep and possibly infinite.ts(2589) Typescript 5.0.2 instantiationCount >= 5e6 🕗 Version & Regression Information 5.0.2 (Also tested with 5.1.0-dev.20230326) Please keep and fil...
Open Graph Description: Bug Report 🔎 Search Terms Type instantiation is excessively deep and possibly infinite.ts(2589) Typescript 5.0.2 instantiationCount >= 5e6 🕗 Version & Regression Information 5.0.2 (Also tested with...
X Description: Bug Report 🔎 Search Terms Type instantiation is excessively deep and possibly infinite.ts(2589) Typescript 5.0.2 instantiationCount >= 5e6 🕗 Version & Regression Information 5.0.2 (Also test...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/53514
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Regression with TS 5. Type instantiation is excessively deep and possibly infinite.ts(2589) ","articleBody":"# Bug Report\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- Type instantiation is excessively deep and possibly infinite.ts(2589)\r\n- Typescript 5.0.2 \r\n- instantiationCount >= 5e6 \r\n\r\n### 🕗 Version & Regression Information\r\n\r\n`5.0.2` (Also tested with `5.1.0-dev.20230326`)\r\n\r\nPlease keep and fill in the line that best applies:\r\n- This changed between versions 4.9.5 and 5.0.2\r\n\r\n### ⏯ Playground Link\r\n\r\nI created a reproduction repo with straight forward reproduction path: \r\nhttps://github.com/garronej/typescript-v5-instantiationCount-bug-report \r\n\r\n### 💻 Code\r\n\r\nThe problem is related to typescript 5 instantiating much more object than TS 4. \r\nI know that the problem occurs when involving [this framework that has complex type definitions](https://github.com/garronej/redux-clean-architecture/blob/main/src/createCore.ts). \r\n\r\n### 🙁 Actual behavior\r\n\r\nWith TypeScript v5 project fail to compile with `Type instantiation is excessively deep and possibly infinite.ts(2589)`. \r\nBecause the `instantiationCount` limit (5e6) is reached. \r\nIncreasing it by modifying TypeScript's source fixes it but intelissense becomes so slow it becomes impossible to work. \r\n\r\nOn MBP M1:\r\n\r\nhttps://user-images.githubusercontent.com/6702424/227797872-21ac44ed-a4a9-4378-9bd8-ea7431e13f7e.mp4\r\n\r\n### 🙂 Expected behavior \r\n\r\nWith TypeScript v4 it compiles and the devloppement experience is smooth: \r\n\r\nhttps://user-images.githubusercontent.com/6702424/227798305-cd0f1b89-6e97-4ea8-aa11-05dd1456ac03.mov \r\n\r\nThanks to all the team, thanks for your great work! \r\n","author":{"url":"https://github.com/garronej","@type":"Person","name":"garronej"},"datePublished":"2023-03-26T19:23:33Z","url":"https://github.com/microsoft/TypeScript/issues/53514"}
| 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:30e608a4-677d-843e-c8a5-e63daa9dd954 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED2C:3F8AB1:2BDE1F7:37BDFD2:6B01982A |
| html-safe-nonce | a95eede35613c188fefeb40a5cc56efdcf12e94d9118a766202d54986d9fe187 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDJDOjNGOEFCMToyQkRFMUY3OjM3QkRGRDI6NkIwMTk4MkEiLCJ2aXNpdG9yX2lkIjoiMTQ2MDg2MDUxNTc5MDA5MDY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5b7082d96f08d1cbb5215ac6758c3f393566077fd7fd667ece677d103ce74936 |
| hovercard-subject-tag | issue:1641048138 |
| 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/53514/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c7d25ac6b7336529361f41600273546e38dfadd9bb0293c0b2de8d670877053c/microsoft/TypeScript/issues/53514 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c7d25ac6b7336529361f41600273546e38dfadd9bb0293c0b2de8d670877053c/microsoft/TypeScript/issues/53514 |
| og:image:alt | Bug Report 🔎 Search Terms Type instantiation is excessively deep and possibly infinite.ts(2589) Typescript 5.0.2 instantiationCount >= 5e6 🕗 Version & Regression Information 5.0.2 (Also tested with... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | garronej |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width