Skip to content

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

Closed as not planned

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

Activity

  1. transferred this issue fromangular/angularon Jan 11, 2025
  2. alan-agius4 commented on Jan 13, 2025

    @alan-agius4
    Collaborator

    This behavior is currently expected, as schematics are designed to access only workspace files. However, a feature request is being tracked at #24362 to enable alternative behaviour.

  3. angular-automatic-lock-bot commented on Feb 13, 2025

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  4. locked and limited conversation to collaborators on Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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