Title: TS 5.8 TypeError: Cannot read properties of undefined (reading 'kind') · Issue #61351 · microsoft/TypeScript · GitHub
Open Graph Title: TS 5.8 TypeError: Cannot read properties of undefined (reading 'kind') · Issue #61351 · microsoft/TypeScript
X Title: TS 5.8 TypeError: Cannot read properties of undefined (reading 'kind') · Issue #61351 · microsoft/TypeScript
Description: 🔎 Search Terms TypeError: Cannot read properties of undefined (reading 'kind') 🕗 Version & Regression Information This changed between versions 5.7.3 and 5.8.2 This changed in commit or PR #60052 ⏯ Playground Link https://www.typescriptl...
Open Graph Description: 🔎 Search Terms TypeError: Cannot read properties of undefined (reading 'kind') 🕗 Version & Regression Information This changed between versions 5.7.3 and 5.8.2 This changed in commit or PR #60052 ⏯...
X Description: 🔎 Search Terms TypeError: Cannot read properties of undefined (reading 'kind') 🕗 Version & Regression Information This changed between versions 5.7.3 and 5.8.2 This changed in commit or...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/61351
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TS 5.8 TypeError: Cannot read properties of undefined (reading 'kind')","articleBody":"### 🔎 Search Terms\n\nTypeError: Cannot read properties of undefined (reading 'kind')\n\n### 🕗 Version \u0026 Regression Information\n\n- This changed between versions 5.7.3 and 5.8.2\n- This changed in commit or PR https://github.com/microsoft/TypeScript/pull/60052\n\n\n### ⏯ Playground Link\n\nhttps://www.typescriptlang.org/dev/bug-workbench/?ts=5.8.2#code/KYDwDg9gTgLgBDAnmYcDKMCGNUF44DeAsAFBxyYBccAdgK4C2ARsFANynlPUDOMUASxoBzDiQC+Y0qEiw4AYwA2mHjzgAVYH2Jk4PYDAzZgACj7HqRnAEoC4zgi3x8J4NUw1E1uLgB8hB3IAM2g4E3kIGj44AG0Aa2BEABo4ADdMRTpgAF04CCC4AHkmACtgeRgAOmAafgEtV2tvHXJWhAALAR5K-UMsHBMWttb4xOzqdMzgJMDW8WsxNvtdSVJl0iA\n\n### 💻 Code\n\n```ts\nexport type State = {\n a: number;\n b: string;\n};\n\nexport class Test{\n setState(state: State){}\n test = (e: any) =\u003e {\n for (const [key, value] of Object.entries(e)) {\n this.setState({\n [key]: value,\n });\n }\n };\n}\n```\n\n\n### 🙁 Actual behavior\n\nrunning `tsc` results in a crash:\n```\nTypeError: Cannot read properties of undefined (reading 'kind')\n```\n\n### 🙂 Expected behavior\n\nNo crash is expected, some type errors should be found instead.\n\n### Additional information about the issue\n\n_No response_","author":{"url":"https://github.com/zxbodya","@type":"Person","name":"zxbodya"},"datePublished":"2025-03-04T22:38:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/61351/TypeScript/issues/61351"}
| 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:4664a1cd-0d89-428d-c5ff-a3e0155bda15 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8148:42230:B4EE54:F23D5D:6A611B4D |
| html-safe-nonce | 0ccb44ae01819d06d9dee068192bc49b7caf2d7f870da360ca71c89e6ac643cd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTQ4OjQyMjMwOkI0RUU1NDpGMjNENUQ6NkE2MTFCNEQiLCJ2aXNpdG9yX2lkIjoiMjczNDI5MTUxNTE3NTE0ODM2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f9463842b792edf7a7ba88e767d5722dedf1eb710f8b1ae55d820da5a90cb4ac |
| hovercard-subject-tag | issue:2895611269 |
| 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/61351/issue_layout |
| twitter:image | https://opengraph.githubassets.com/30b97962a8867e797a44966d0fb23a820b2dd774df596ba4178d3314621babf7/microsoft/TypeScript/issues/61351 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/30b97962a8867e797a44966d0fb23a820b2dd774df596ba4178d3314621babf7/microsoft/TypeScript/issues/61351 |
| og:image:alt | 🔎 Search Terms TypeError: Cannot read properties of undefined (reading 'kind') 🕗 Version & Regression Information This changed between versions 5.7.3 and 5.8.2 This changed in commit or PR #60052 ⏯... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zxbodya |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5d23cf1c0cd2fa53870b9a743b3e1bc3ff0d0b0b3a477b50251e1c9dd8ecb93d |
| 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 | abf5a2f79ab9b533c5865f5281057f7d17cf18f3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width