Skip to content

ES2022 not a valid value in new Angular 16 project. #25417

@bh3605

Description

@bh3605

Command

new

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

No response

Description

Created a new Angular 16 project. Immediately see this error

Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'esnext'

Have "typescript": "~5.1.3" installed. Angular cli 16.1.0

I think this error is also contributing to another problem I'm seeing with @input decorators too

image
image
image

Minimal Reproduction

ng new MyApplication

Exception or Error

No response

Your Environment

16.1.0

Anything else relevant?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions