Comments (5)
I think you are misunderstanding the issue here.
The fact that Stackblitz doesn't convert await
into a generator function does not matter. We came across this issue, because we are writing code that runs side-by-side with an Angular application (which I guess does this transpilation, eventhough technically Angular seems to only support browsers that have native Promise
support) and the ZoneJS behavior causes issues in our code (and ultimately in the Angular application, because they show an error screen whenever an uncaught exception happens. In the code it is not actually uncaught, ZoneJS just changes the behavior).
Seems like when ZoneJS is on the page, it currently requires ALL the code on the page to have await
transpiled into a generator function, which should not be a requirement.
from angular.
@ldellorto
I run your sample in local, it can not be reproduced, it seems stackblitz not transpile async/await
to Promise
. Could you try it in your local?
from angular.
+1 This is a stackblitz issue.
Stackblitz does't convert await
into a generator function when targeting ES2017 and above. So this isn't patched by zone.js.
from angular.
Is this the same problem as reported in #51328?
from angular.
Yeah that seems to be the same issue. thx.
from angular.
Related Issues (20)
- Docs: Improve Syntax Highlighting HOT 2
- Docs: angular.dev/guide/testing missing image HOT 1
- Code example not displayed on Testing sections HOT 1
- Dynamic require is not supported HOT 2
- Cant Install angular libary into angular app for local development HOT 3
- viewTransition not working with eventCoalescing HOT 2
- No docs about how to test effects in component constructor HOT 7
- Pending APP_INITIALIZER doesn't trigger Hydration warning after APPLICATION_IS_STABLE_TIMEOUT HOT 3
- Creating a view inside an `effect` will track any signal reads that happen in the view HOT 6
- Some pages of angular.dev are missing content HOT 1
- Fixed peerDependency in @angular/compiler 17.2.1 to @angular/[email protected] causes peer depency conflicts in new projects HOT 1
- Add an option to keep double-quotes as " instead escaping them as "
- Tutorial editor fails with "SyntaxError: Unexpected token '<'..." HOT 2
- how to import referece of html in ts file? HOT 1
- bug(Zone.js): removing capture:true event listener breaks .on* event listeners HOT 2
- Container CSS Queries don't work with ::ng-deep HOT 3
- Multiple instances of the same @defered component are instantiated in a random order with esbuild (but not webpack) HOT 1
- Service Worker has a memory leak and crashes the tab
- $localize.locale is undefined HOT 5
- control-flow command freeze
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular.