Skip to content

Can't update to Angular 18 #1837

@igorosabel

Description

@igorosabel

Hi!

Yesterday Angular 18 was published so I tried to update a project, but it fails because of the @angular-eslint dependency:

C:\Users\igorosabel\Documents\Angular\Project>ng update
Using package manager: npm
Collecting installed dependencies...
Found 35 dependencies.
    We analyzed your package.json, there are some packages to update:

      Name                                    Version                  Command to update
     -------------------------------------------------------------------------------------
      @angular-eslint/schematics              17.4.1 -> 17.5.0         ng update @angular-eslint/schematics
      @angular/cdk                            17.3.9 -> 18.0.0         ng update @angular/cdk
      @angular/cli                            17.3.7 -> 18.0.0         ng update @angular/cli
      @angular/core                           17.3.9 -> 18.0.0         ng update @angular/core
      @angular/material                       17.3.9 -> 18.0.0         ng update @angular/material

    There might be additional packages which don't provide 'ng update' capabilities that are outdated.
    You can update the additional packages by running the update command of your package manager.

C:\Users\igorosabel\Documents\Angular\Project>ng update @angular/cli @angular/core @angular/material @angular/cdk @angular-eslint/schematics
The installed Angular CLI version is outdated.
Installing a temporary Angular CLI versioned 18.0.0 to perform the update.
✔ Packages successfully installed.
Using package manager: npm
Collecting installed dependencies...
Found 35 dependencies.
Fetching dependency metadata from registry...
                  Package "@angular-eslint/schematics" has an incompatible peer dependency to "@angular/cli" (requires ">= 17.0.0 < 18.0.0", would install "18.0.0")
                  Package "@angular-eslint/schematics" has an incompatible peer dependency to "@angular/cli" (requires ">= 17.0.0 < 18.0.0", would install "18.0.0").
× Migration failed: Incompatible peer dependencies found.
Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.
You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later.
  See "C:\Users\igorosabel\AppData\Local\Temp\ng-2mzLPy\angular-errors.log" for further details.

Will there be a @angular-eslint 18.0 package soon? Until this is resolved I can't update anything.

I can put the package.json file if needed, but I think the problem is quite self-explained.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    BREAKING CHANGEThis is a breaking change and should only be released as part of a new major version

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions