Repository navigation
Closed
Labels
area: @angular-devkit/build-angulardevkit/build-angular:browserfreq1: lowOnly reported by a handful of users who observe it rarelyseverity1: confusingtype: bug/fix
Description
Command
build, serve, test
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
v14
Description
Browserlistrc is ignored for some reason and this warning was not present in v14.
Minimal Reproduction
Steps to reproduce
- Run
ng new *proj_name*; - Change
targetintsconfigtoES2020; - Run
ng serve; - See warning
TypeScript compiler options "target" and "useDefineForClassFields" are set to "ES2022" and "false" respectively by the Angular CLI. To control ECMA version and features use the Browerslist configuration.; - Run
ng generate config browserslist; - Run
ng serve; - See warning
TypeScript compiler options "target" and "useDefineForClassFields" are set to "ES2022" and "false" respectively by the Angular CLI. To control ECMA version and features use the Browerslist configuration..
Your Environment
Angular CLI: 15.1.5
Node: 18.14.0
Package Manager: npm 9.4.2
OS: win32 x64
Angular: 15.1.4
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1501.5
@angular-devkit/build-angular 15.1.5
@angular-devkit/core 15.1.5
@angular-devkit/schematics 15.1.5
@angular/cli 15.1.5
@schematics/angular 15.1.5
rxjs 7.8.0
typescript 4.9.5
Metadata
Metadata
Assignees
Labels
area: @angular-devkit/build-angulardevkit/build-angular:browserfreq1: lowOnly reported by a handful of users who observe it rarelyseverity1: confusingtype: bug/fix
Activity
alan-agius4 commentedon Feb 10, 2023
The ECMA version output controlled via the browserslist configuration. In this case "ES2020" in the TypeScript configuration is ignored and hence the warning.
You can set the "target" to "ES2022" in your TypeScript configuration to remove the warning.
fix(@angular-devkit/build-angular): update the ECMA output warning me…
fix(@angular-devkit/build-angular): update the ECMA output warning me…
fix(@angular-devkit/build-angular): update the ECMA output warning me…
liesahead commentedon Feb 13, 2023
Thanks, it's clear now.
angular-automatic-lock-bot commentedon Mar 16, 2023
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.