Skip to content

Angular 9 - TSConfig - Zone.js does not support native async/await in ES2017 #216

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
SuperITMan opened this issue May 25, 2021 · 0 comments · Fixed by #239
Closed

Angular 9 - TSConfig - Zone.js does not support native async/await in ES2017 #216

SuperITMan opened this issue May 25, 2021 · 0 comments · Fixed by #239
Labels
bug Something isn't working typescript
Milestone

Comments

@SuperITMan
Copy link
Member

SuperITMan commented May 25, 2021

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/NationalBankBelgium/code-style/blob/master/CONTRIBUTING.md#got-a-question-or-problem

Current behavior

Target > ES2017 is not supported by zone.js until angular v11.2.0.
angular/angular-cli#19871

More links:

A warning is displayed in test and in build:

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.

Expected behavior

The target should be ES2015 in tsconfig up to TypeScript 4.0 configuration.

What is the motivation / use case for changing the behavior?

Fix issue

Environment


Angular version: 9.x
Code Style version: 1.5.0


Others:

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working typescript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant