-
Notifications
You must be signed in to change notification settings - Fork 12.8k
tryGetPerformanceHooks
throws on Stackblitz with ts 5.5.3
#59296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That doesn't seem to be an issue with TypeScript itself. |
That's debatable, the root cause here is that
TypeScript/src/compiler/performanceCore.ts Lines 31 to 39 in ec446b6
|
I'll make the code more resilient, but it's a little unfortunate that StackBlitz has chosen to make the |
Uh oh!
There was an error while loading. Please reload this page.
🔎 Search Terms
typescript
tryGetPerformanceHooks
stackblitz
🕗 Version & Regression Information
When running an Angular project on stackblitz (on the old runtime, not Webcontainers),
typescript.js
throwsThis happens on 5.5.3, but downgrading to 5.4 fixes the issue.
The typescript code probably isn't defensive enough depending on the runtime.
⏯ Playground Link
https://stackblitz.com/edit/angular-next-mqukjf?file=src%2Fmain.ts
💻 Code
No response
🙁 Actual behavior
Throws when running TS 5.5.3
🙂 Expected behavior
Should run fine as it did with TS 5.4
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: