Skip to content

Angular '@angular/cdk' update fails with "extends": "@tsconfig/strictest/tsconfig.json" in tsconfig and workspaces #29333

@wein2011

Description

@wein2011

Is this a bug report or a feature request?

  • Bug Report
  • Feature Request

Please provide the steps to reproduce the issue [Bug Report only]

When executing

ng update @angular/cdk

the operations fails with the following error:

** Executing migrations of package '@angular/cdk' **

❯ Updates the Angular CDK to v19.
✖ Migration failed: tsconfig.json:4:14 - error TS6053: File '@tsconfig/strictest/tsconfig.json' not found.

4   "extends": "@tsconfig/strictest/tsconfig.json",

After removing the line

"extends": "@tsconfig/strictest/tsconfig.json"

from tsconfig.common.json, the operations completes successfully.

I attached a simple reproduction which is based on the standard new Angular project.

The differences are:

  1. tsconfig.json includes the line: "extends": "@tsconfig/strictest/tsconfig.json"
  2. The project migration-test-1 is part of a workspace within the migration-test/package.json file.

The issue only occurs when using the workspaces feature within package.json which changes the default location of node_modules.

In order to reproduce, please follow these steps:

  1. Unzip the migration-test.zip file
  2. > cd "migration-test"
  3. > npm install
    This will create the node_modules folder next to and not within the migration-test-1 folder
  4. > cd migration-test-1
  5. > ng update @angular/cdk
  6. This results in:
Using package manager: npm
Collecting installed dependencies...
Found 24 dependencies.
UPDATE package.json (1116 bytes)
✔ Cleaning node modules directory
✔ Installing packages
** Executing migrations of package '@angular/cdk' **

❯ Updates the Angular CDK to v19.
✖ Migration failed: tsconfig.json:4:14 - error TS6053: File '@tsconfig/strictest/tsconfig.json' not found.

4   "extends": "@tsconfig/strictest/tsconfig.json",

I assume this has to do with the fact that the node_modules are now one level higher. However, this should be ok.

It is likely linked to:
Angular signal input migration fails with "extends": "@tsconfig/strictest/tsconfig.json" in tsconfig

Attached reproduction:

migration-test.zip

Please provide the expected behavior vs the actual behavior you encountered [Bug Report only]

ng update should look for the node_module folder in the parent directory

Please provide a screenshot if possible [Bug Report only]

No response

Please provide the exception or error you saw [Bug Report only]


Is this a browser-specific issue? If so, please specify the device, browser, and version. [Bug Report only]


Description [Feature Request only]

No response

Proposed solution [Feature Request only]

No response

Alternatives considered [Feature Request only]

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