Title: Recursive types error: Type instantiation is excessively deep · Issue #45672 · microsoft/TypeScript · GitHub
Open Graph Title: Recursive types error: Type instantiation is excessively deep · Issue #45672 · microsoft/TypeScript
X Title: Recursive types error: Type instantiation is excessively deep · Issue #45672 · microsoft/TypeScript
Description: Bug Report I had got error Type instantiation is excessively deep and possibly infinite. in my JSON types - value to JSON transformation. It's some new limitation introduced from v4.3.2? Works fine with v4.2.4. 🕗 Version & Regression Inf...
Open Graph Description: Bug Report I had got error Type instantiation is excessively deep and possibly infinite. in my JSON types - value to JSON transformation. It's some new limitation introduced from v4.3.2? Works fine...
X Description: Bug Report I had got error Type instantiation is excessively deep and possibly infinite. in my JSON types - value to JSON transformation. It's some new limitation introduced from v4.3.2? Works ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/45672
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Recursive types error: Type instantiation is excessively deep","articleBody":"# Bug Report\r\n\r\n\u003c!--\r\n Please fill in each section completely. Thank you!\r\n-->\r\n\r\nI had got error `Type instantiation is excessively deep and possibly infinite.` in my JSON types - value to JSON transformation.\r\nIt's some new limitation introduced from v4.3.2?\r\nWorks fine with v4.2.4.\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- This changed between versions 4.2.4 and 4.3.2\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\nI couldn't get to make a short and simple example because when I removing any recursive type reference then error will disappeared.\r\n\r\n[Playground link with relevant code](https://www.typescriptlang.org/play?jsx=0&ts=4.4.2#code/PQKgBApgzgNglgOwC4FoAmcoEMBGMJgjACwAUGaGAKpJwxSEnmlICeADgQIIKsDyOAFYQAxkjABeMACVRAewBOaADxQkCxAHMANGCy8AfAG4yZNpzA9WAMQCuCMXDkJJYABQA6L1gWaoALj1eAEpJAyDWE2ZzAgBJADMAUQAPJAgENChlABVdbI4IPIALdNdcsET6AikECAA3CAVwqRT1LDEcvILwiFT0zLBahoUyMDAAfgqq0bBA1oV2pE6wfM4evoyGVYgZyeyShBm5qqizArAAaQhWKD547eUuSA2BqwFhMV0AIV0AZXU4GJnmlNmAcHI5Ph9K51LYIM0wAA5ZyI2wwGC4fDKGYAbxmYwA2gAFMCIMAAa2ucnilgAuoF-hogb0QQNYTtSGMuRMwAlWv0svNFo9ibTvgZvroiboho0DPiuYEuKLgQKwF8FWNJkTNbNBvVGlExgBfAmU1jUulkYymFjnFIiGC2NAQK43O4PJ4stVvISiJCSsCMwHib2g8GQiDQqTxLBVBFEwHk7GcyzaGYOp0u5Tmy1cXRu273AqPQPBsQGeWkG3Re2pBZiQsektel4MX0fAPqv4A5ltsEQqEuGNxqDw1yJkTJmb5mZN4ucUvdoO9pBVmtnCx8di0Zw5BE4sCaCBIQJuUIScLZMDG06kSiydgKOSMW0xCrJR3OiB2By7hBZK2rLtrw7z+gimbfvOnq6FYv6OM4G52hYABqcZwGgRLPuwgGqqCHb+rofAALZwEghZ4QMuY0vorAQZ+WY-vYCEASmYwkWRS4ceR1wMAAPhSVI0gAUr8fCIr8jRwOhABemIQMotG6LRlbWne76ieJXAKAs-DxGxaYzLEUCyFgaDODArCUQwEZDumqbcRRYYDEKja8Y866uMZpnmQglnWWA7I8j5FmsNpunKMJUDOHA8SsFxpE8TclZ6uFWDxVFMVxQlZGFpW6nnNu-5xo8AUEZ8YCObxAWuUlgEpVIeKpsSpIuJB2bUR+bRue6C4KfmlU7k4CCKYYEqVYleW0uMgSZQgsXxcqRJihNuW8TWt5vucyIIEVw0lUBPqgX6FVVTcNX1oshYeQeMwtWSnVofAmHYYKDFQbxzaLgNe17ip41nVABj0mAc0LSKy1EZN61RJttYWJpiJgWIdylc5IH8CdXaAxd3V1TdriPehL1yDhBmzg50M3NaAWyiMqaTDixpHINxUwDldXhAAZEizi-QgB1Q2tyUFRYtXXVwCKHaC-PKIg8SNCsVZal1Db49kyupQFiOSRosnyXLCAKwoKzKYYuyq1d7kayz0sDCFflhTp6WG8bSsW+L1ua0qZXHZ2FudVwLN03evTsIo4gadF83ZT9VMMOjls9fVrh01LAWy-Lis2wzoPR+D5S1cogO6J7Nz7ilAn2C68SIBAaC29rYkSVJ+t4ApWcm+UKkW2D2WF5dHQl0n6uVt7lgBQ7llpfFnfu7niMz6j5R2+2zvxSpPKxlUersqXg9LMPZdZBrqmpj7idUIgSAABwz2AAlX8gACMABs9+P9fADMABMH+8sgO+68H4AKQG-f+sRkC-xnhbGeygEC2GIjgOUjdE7lSQL3ZuyMkCozjsLIGLM1AaAQJoUOyRw4KHENfRosYRAEB1q3eAcl25o37OgoWdVcZqwlgiNOYAmpjAUFGXy-kAD6Y49ZMPkrNZuutpJSJYXgzmRpApyERueWa+dY4cLyrDMgQA)\r\n","author":{"url":"https://github.com/vladzdev","@type":"Person","name":"vladzdev"},"datePublished":"2021-09-01T04:27:30Z","url":"https://github.com/microsoft/TypeScript/issues/45672"}
| 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:d5ea4dc2-56ec-87d3-d2b5-6a2652c2c2d0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF72:38C5CF:20702D0:292BBC4:6B01549E |
| html-safe-nonce | d3220a406395154a3816f7ed52dfece4ea3f5222be799ab0c1ee058ca35f0e27 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjcyOjM4QzVDRjoyMDcwMkQwOjI5MkJCQzQ6NkIwMTU0OUUiLCJ2aXNpdG9yX2lkIjoiNjUxMDU1NzMyNDUzOTY3OTkwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d57ee793ef950f84ccc74a2695e19a895c87bd41f521c6dfbdc6d327641a9636 |
| hovercard-subject-tag | issue:984602060 |
| 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/45672/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cc37611f604789e72dbb8f7cd804a242b04d962231d3bf8e4223068ebc90ea88/microsoft/TypeScript/issues/45672 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cc37611f604789e72dbb8f7cd804a242b04d962231d3bf8e4223068ebc90ea88/microsoft/TypeScript/issues/45672 |
| og:image:alt | Bug Report I had got error Type instantiation is excessively deep and possibly infinite. in my JSON types - value to JSON transformation. It's some new limitation introduced from v4.3.2? Works fine... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vladzdev |
| 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