question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Zone.js does not support native async/await in ES2017 warning

See original GitHub issue

📚 Docs or angular.io bug report

Description

We’re told to update our target to es2018, so, after doing that, I’m getting a ton of

WARNING: Zone.js does not support native async/await in ES2017.
    These blocks are not intercepted by zone.js and will not triggering change detection.
    See: https://github.com/angular/zone.js/pull/1140 for more information.

…when I run tests and when I serve the application.

Reproduction Steps**

Upgrade to Angular v10, update target in tsconfig.base.json to es2018

Expected vs Actual Behavior**

Expected behavior would probably be to not see any sort of warning after having followed official instructions. In reality, I’m getting a warning with a linked PR to an archived repo. We could provide a better experience to our users.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
alan-agius4commented, Jun 25, 2020

Issue for zone.js not supporting async/await in ES2017 can be found here: https://github.com/angular/angular/issues/31730

1reaction
romanryasne2commented, Jun 26, 2020

How to suppress this warning? It doesn’t make sense to me, since I don’t use zone.js at all.

Read more comments on GitHub >

github_iconTop Results From Across the Web

should I care about "Zone.js does not support native async ...
WARNING : Zone.js does not support native async/await in ES2017. These blocks are not intercepted by zone.js and will not triggering change ...
Read more >
To be clear, Zone.js does support async-await when ...
One step closer a to zone-less Angular. ... To be clear, Zone.js does support async-await when downtranspiled to anything lower than ES2017.
Read more >
angular/angular - Gitter
WARNING : Zone.js does not support native async/await in ES2017. so in ES2015 it may does?
Read more >
Loading | Angular - EJ 2 Forums - Syncfusion
WARNING : Zone.js does not support native async/await in ES2017. These blocks are not intercepted by zone.js and will not triggering change ...
Read more >
await - JavaScript - MDN Web Docs
Because await is only valid inside async functions and modules, which themselves are asynchronous and return promises, the await expression never blocks the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found