Title: Excessive stack depth comparing types 'FlatArray
Open Graph Title: Excessive stack depth comparing types 'FlatArray
X Title: Excessive stack depth comparing types 'FlatArray
Description: Bug Report 🔎 Search Terms Excessive stack depth comparing types FlatArray 2321 JSX 🕗 Version & Regression Information This changed between versions 4.2.3 and 4.3.0-dev.20210314. 💻 Code const Component = (): JSX.Element => { const categor...
Open Graph Description: Bug Report 🔎 Search Terms Excessive stack depth comparing types FlatArray 2321 JSX 🕗 Version & Regression Information This changed between versions 4.2.3 and 4.3.0-dev.20210314. 💻 Code const Compon...
X Description: Bug Report 🔎 Search Terms Excessive stack depth comparing types FlatArray 2321 JSX 🕗 Version & Regression Information This changed between versions 4.2.3 and 4.3.0-dev.20210314. 💻 Code const Co...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/43258
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Excessive stack depth comparing types 'FlatArray\u003cArr, ?>' and 'FlatArray\u003cArr, ?>'. ts(2321)","articleBody":"# Bug Report\r\n\r\n### 🔎 Search Terms\r\n\r\n- Excessive stack depth comparing types\r\n- FlatArray\r\n- 2321\r\n- JSX\r\n\r\n### 🕗 Version & Regression Information\r\n\r\n- This changed between versions `4.2.3` and `4.3.0-dev.20210314`.\r\n\r\n### 💻 Code\r\n\r\n```tsx\r\nconst Component = (): JSX.Element => {\r\n const categories = ['Fruit', 'Vegetables'];\r\n\r\n return (\r\n \u003cul>\r\n \u003cli>All\u003c/li>\r\n {categories.map((category) => (\r\n \u003cli key={category}>{category}\u003c/li>\r\n ))}\r\n \u003c/ul>\r\n );\r\n};\r\n\r\nexport default Component;\r\n```\r\n\r\n### 🙁 Actual behavior\r\n\r\nThe following TypeScript error:\r\n> Excessive stack depth comparing types 'FlatArray\u003cArr, ?>' and 'FlatArray\u003cArr, ?>'. ts(2321)\r\n\r\n\r\n\r\n\r\n### 🙂 Expected behavior\r\n\r\nI expect this code not to produce an error.\r\n\r\n**To work around:**\r\n- Remove the preceding list item (`li`) OR\r\n- Switch VSCode's TS version from `4.3.0-dev.20210314` to the workspace's (`4.2.3`).\r\n\r\n\r\n\r\n**Possible related issue:**\r\n- https://github.com/microsoft/TypeScript/issues/43249\r\n","author":{"url":"https://github.com/simonsinclair","@type":"Person","name":"simonsinclair"},"datePublished":"2021-03-15T22:24:27Z","url":"https://github.com/microsoft/TypeScript/issues/43258"}
| 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:e3c4d4c8-db10-f79c-c584-03fd4980d9a7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 84EA:1B6B82:4D2BAA:66F3F5:6B017A35 |
| html-safe-nonce | 40a433843aae3421128af0307744e1819a03e4587a27019f5220aa78aef4dbff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEVBOjFCNkI4Mjo0RDJCQUE6NjZGM0Y1OjZCMDE3QTM1IiwidmlzaXRvcl9pZCI6IjM1OTcwOTI3NjM1NDEyNzMxNDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 299a42cc896ef45b63946db5c8a51a989fa64007c4aa2e65ee81b7fb6c354a5f |
| hovercard-subject-tag | issue:832240033 |
| 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/43258/issue_layout |
| twitter:image | https://opengraph.githubassets.com/83c7f00c08250669bbb54581e2c61a87ff169acdd8e42f3f814a1e75130db236/microsoft/TypeScript/issues/43258 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/83c7f00c08250669bbb54581e2c61a87ff169acdd8e42f3f814a1e75130db236/microsoft/TypeScript/issues/43258 |
| og:image:alt | Bug Report 🔎 Search Terms Excessive stack depth comparing types FlatArray 2321 JSX 🕗 Version & Regression Information This changed between versions 4.2.3 and 4.3.0-dev.20210314. 💻 Code const Compon... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | simonsinclair |
| 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