Skip to content

ng update and ng install uses different typescript versions #24255

@ky-one

Description

@ky-one

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

14

Description

When I use ng new it installs typescript: ~4.7.2
When I use ng update it upgrades to typescript: ~4.8.4

I guess it should use the same typescript version, or?
Because the update.angular.io says:
Make sure that you are using a supported version of TypeScript before you upgrade your application. Angular v15 supports TypeScript version 4.8 or later.

Minimal Reproduction

npx -p @anuglar/cli@14 ng new test
ng update @angular/core@15 @angular/cli@15

Exception or Error

No response

Your Environment

Windows 10 with node v16.18.0 and no global cli

Anything else relevant?

No response

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