Title: `tryGetPerformanceHooks` throws on Stackblitz with ts 5.5.3 · Issue #59296 · microsoft/TypeScript · GitHub
Open Graph Title: `tryGetPerformanceHooks` throws on Stackblitz with ts 5.5.3 · Issue #59296 · microsoft/TypeScript
X Title: `tryGetPerformanceHooks` throws on Stackblitz with ts 5.5.3 · Issue #59296 · microsoft/TypeScript
Description: 🔎 Search Terms typescript tryGetPerformanceHooks stackblitz 🕗 Version & Regression Information When running an Angular project on stackblitz (on the old runtime, not Webcontainers), typescript.js throws Uncaught (in promise) TypeError: C...
Open Graph Description: 🔎 Search Terms typescript tryGetPerformanceHooks stackblitz 🕗 Version & Regression Information When running an Angular project on stackblitz (on the old runtime, not Webcontainers), typescript.js t...
X Description: 🔎 Search Terms typescript tryGetPerformanceHooks stackblitz 🕗 Version & Regression Information When running an Angular project on stackblitz (on the old runtime, not Webcontainers), typescript....
Opengraph URL: https://github.com/microsoft/TypeScript/issues/59296
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`tryGetPerformanceHooks` throws on Stackblitz with ts 5.5.3 ","articleBody":"### 🔎 Search Terms\r\n\r\ntypescript \r\ntryGetPerformanceHooks\r\nstackblitz\r\n\r\n### 🕗 Version & Regression Information\r\n\r\nWhen running an Angular project on stackblitz (on the old runtime, not Webcontainers), `typescript.js` throws \r\n\r\n```\r\nUncaught (in promise) TypeError: Cannot read properties of undefined (reading 'timeOrigin')\r\n at tryGetPerformanceHooks (typescript.js:5266:27)\r\n```\r\n\r\nThis happens on 5.5.3, but downgrading to 5.4 fixes the issue. \r\n\r\nThe typescript code probably isn't defensive enough depending on the runtime. \r\n\r\n### ⏯ Playground Link\r\n\r\nhttps://stackblitz.com/edit/angular-next-mqukjf?file=src%2Fmain.ts\r\n\r\n### 💻 Code\r\n\r\n_No response_\r\n\r\n### 🙁 Actual behavior\r\n\r\nThrows when running TS 5.5.3\r\n\r\n### 🙂 Expected behavior\r\n\r\nShould run fine as it did with TS 5.4 \r\n\r\n### Additional information about the issue\r\n\r\n_No response_","author":{"url":"https://github.com/JeanMeche","@type":"Person","name":"JeanMeche"},"datePublished":"2024-07-16T12:23:21Z","url":"https://github.com/microsoft/TypeScript/issues/59296"}
| 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:026b1678-a059-93d0-a5d4-bfe186e82d4f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3EC:19F84C:2B8E1C6:375D1BA:6B019A28 |
| html-safe-nonce | b51aad22a0655e00c0bfd0cf95e35e1c06e8d4c0f1053ce3f5218e5611bf0aad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0VDOjE5Rjg0QzoyQjhFMUM2OjM3NUQxQkE6NkIwMTlBMjgiLCJ2aXNpdG9yX2lkIjoiMjkyMTI1OTIzNjk0NjE4ODg0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1937a84aa9b1c10de6c3e5479ad337e3d6f79a7850a3c8ef02939a13210f75cc |
| hovercard-subject-tag | issue:2411004810 |
| 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/59296/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fbee7d16738e1ae70f0c7fc8d5804b9013338dcd079f90c7acb079c8d32036aa/microsoft/TypeScript/issues/59296 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fbee7d16738e1ae70f0c7fc8d5804b9013338dcd079f90c7acb079c8d32036aa/microsoft/TypeScript/issues/59296 |
| og:image:alt | 🔎 Search Terms typescript tryGetPerformanceHooks stackblitz 🕗 Version & Regression Information When running an Angular project on stackblitz (on the old runtime, not Webcontainers), typescript.js t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JeanMeche |
| 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