Skip to content

Missing tsconfig break update process #16019

Closed
@filipesilva

Description

@filipesilva

This issue impacts 9.0.0-rc.0 and happened while updating https://github.com/vmware/clarity.

Having a target that references a missing tsconfig file will prevent ng update from completing:

kamik@RED-X1C6 MINGW64 /d/sandbox/clarity (update-9)
$ ng update @angular/cli @angular/core --next --force
The installed Angular CLI version is older than the latest published version.
Installing a temporary version to perform the update.
Installing packages for tooling via npm.
C:\Users\kamik\AppData\Local\Temp\.ng-temp-packages-6VhtAc\ng -> C:\Users\kamik\AppData\Local\Temp\.ng-temp-packages-6VhtAc\node_modules\@angular\cli\bin\ng

> @angular/cli@9.0.0-rc.0 postinstall C:\Users\kamik\AppData\Local\Temp\.ng-temp-packages-6VhtAc\node_modules\@angular\cli
> node ./bin/postinstall/script.js

+ @angular/cli@9.0.0-rc.0
added 254 packages from 205 contributors in 18.965s
Installed packages for tooling via npm.
Using package manager: 'npm'
Collecting installed dependencies...
Found 109 dependencies.
Fetching dependency metadata from registry...
                  Package "@angular-builders/custom-webpack" has an incompatible peer dependency to "@angular-devkit/build-angular" (requires ">=0.801.0", would install "0.900.0-rc.0").
                  Package "ts-api-guardian" has an incompatible peer dependency to "typescript" (requires "~3.4.0", would install "3.6.4").
    Updating package.json with dependency @angular/cli @ "9.0.0-rc.0" (was "8.3.17")...
    Updating package.json with dependency @angular/core @ "9.0.0-rc.0" (was "8.0.0")...
    Updating package.json with dependency @angular/compiler-cli @ "9.0.0-rc.0" (was "8.0.0")...
    Updating package.json with dependency @angular/language-service @ "9.0.0-rc.0" (was "8.0.0")...
    Updating package.json with dependency @angular-devkit/build-angular @ "0.900.0-rc.0" (was "0.800.0")...
    Updating package.json with dependency @angular-devkit/build-ng-packagr @ "0.900.0-rc.0" (was "0.800.0")...
    Updating package.json with dependency ng-packagr @ "9.0.0-rc.1" (was "5.2.0")...
    Updating package.json with dependency @angular/compiler @ "9.0.0-rc.0" (was "8.0.0")...
    Updating package.json with dependency @angular/common @ "9.0.0-rc.0" (was "8.0.0")...
    Updating package.json with dependency @angular/forms @ "9.0.0-rc.0" (was "8.0.0")...
    Updating package.json with dependency @angular/platform-browser @ "9.0.0-rc.0" (was "8.0.0")...
    Updating package.json with dependency @angular/animations @ "9.0.0-rc.0" (was "8.0.0")...
    Updating package.json with dependency typescript @ "3.6.4" (was "3.4.5")...
    Updating package.json with dependency @angular/platform-server @ "9.0.0-rc.0" (was "8.0.0")...
    Updating package.json with dependency @angular/router @ "9.0.0-rc.0" (was "8.0.0")...
    Updating package.json with dependency @angular/platform-browser-dynamic @ "9.0.0-rc.0" (was "8.0.0")...
    Updating package.json with dependency rxjs @ "6.5.3" (was "6.5.2")...
    Updating package.json with dependency zone.js @ "0.10.2" (was "0.9.1")...
UPDATE package.json (13504 bytes)
√ Packages installed successfully.
** Executing migrations of package '@angular/cli' **

>  Update an Angular CLI project to version 9.
Could not find (src/dev/tsconfig.spec.json)
×  Migration failed. See above for further details.

Instead we should warn the user and process with the rest of the update process.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions