Skip to content

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

@SuperITMan

Description

@SuperITMan

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions