Skip to content

Migration to 14.0.0-rc.1 via 'ng update' fails #23211

Description

@mcalmus

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Description

Same issue as issue #23163.

I see issue doing update using migrate-only:

🔬 Minimal Reproduction

ng update --from=13 --to=14 @angular/cli

* Executing migrations on package '@angular/cli' **
Remove 'defaultProject' option from workspace configuration.
The project to use will be determined from the current working directory.
Migration failed: this.tree.readText is not a function

🔥 Exception or Error

Migration failed: this.tree.readText is not a function

🌍 Your Environment


_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 14.0.0-rc.1
Node: 16.13.2
Package Manager: npm 8.7.0
OS: win32 x64

Angular: 14.0.0-rc.1
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect           0.1400.0-rc.1
@angular-devkit/build-angular   14.0.0-rc.1
@angular-devkit/core                  14.0.0-rc.1
@angular-devkit/schematics       14.0.0-rc.1
@schematics/angular             14.0.0-rc.1
rxjs                            7.5.5
typescript                      4.6.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions