Title: Failure in 'getNavigationBarItems' when mixing computed/non-computed property declarations · Issue #7301 · microsoft/TypeScript · GitHub
Open Graph Title: Failure in 'getNavigationBarItems' when mixing computed/non-computed property declarations · Issue #7301 · microsoft/TypeScript
X Title: Failure in 'getNavigationBarItems' when mixing computed/non-computed property declarations · Issue #7301 · microsoft/TypeScript
Description: This code class C { foo; ["bar"]: string; } causes the following error: getNavigationBarItems('C:\Users\drosen\AppData\Local\Temp\~vs6F46.ts') StackTrace: TypeError: Unable to get property 'localeCompare' of undefined or null reference a...
Open Graph Description: This code class C { foo; ["bar"]: string; } causes the following error: getNavigationBarItems('C:\Users\drosen\AppData\Local\Temp\~vs6F46.ts') StackTrace: TypeError: Unable to get property 'localeC...
X Description: This code class C { foo; ["bar"]: string; } causes the following error: getNavigationBarItems('C:\Users\drosen\AppData\Local\Temp\~vs6F46.ts') StackTrace: TypeError: Unable to get...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/7301
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Failure in 'getNavigationBarItems' when mixing computed/non-computed property declarations","articleBody":"This code\n\n``` ts\nclass C {\n foo;\n [\"bar\"]: string;\n}\n```\n\ncauses the following error:\n\n```\ngetNavigationBarItems('C:\\Users\\drosen\\AppData\\Local\\Temp\\~vs6F46.ts')\n\nStackTrace:\n\nTypeError: Unable to get property 'localeCompare' of undefined or null reference\n at Anonymous function (:42182:25)\n at sortNodes (:42180:17)\n at createClassItem (:42442:25)\n at createTopLevelItem (:42381:25)\n at getItemsWorker (:42243:21)\n at getNavigationBarItems (:42074:13)\n at getNavigationBarItems (:52212:13)\n at Anonymous function (:54667:100)\n at simpleForwardCall (:54385:9)\n at forwardJSONCall (:54401:13)\n at forwardJSONCall (:54447:13)\n at getNavigationBarItems (:54667:13)\n```\n","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2016-02-29T19:47:51Z","url":"https://github.com/microsoft/TypeScript/issues/7301"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:ce2dd81d-4938-4ef2-f79b-39f0077b52a7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CEE8:11CA3F:977BF3:D224CB:6AFA12A7 |
| html-safe-nonce | b6165e2f9165435019c24fc3c996eaad854e98a0b3892fe8d65b1c11ce5db5c3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUU4OjExQ0EzRjo5NzdCRjM6RDIyNENCOjZBRkExMkE3IiwidmlzaXRvcl9pZCI6IjMzNDgzMDM4OTY3MDE5NjQ5NjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bb282ddea2eeed217d68886bbf8155123ea78d2158ea58e9416ccd962c31b5a3 |
| hovercard-subject-tag | issue:137352244 |
| 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/7301/issue_layout |
| twitter:image | https://opengraph.githubassets.com/62bd8980bdaae8b5a4dcd97372c0debaf4a259447f5c5726bbf901e59f856ef7/microsoft/TypeScript/issues/7301 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/62bd8980bdaae8b5a4dcd97372c0debaf4a259447f5c5726bbf901e59f856ef7/microsoft/TypeScript/issues/7301 |
| og:image:alt | This code class C { foo; ["bar"]: string; } causes the following error: getNavigationBarItems('C:\Users\drosen\AppData\Local\Temp\~vs6F46.ts') StackTrace: TypeError: Unable to get property 'localeC... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DanielRosenwasser |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| 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 | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width