-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
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:
- tsconfig.json includes the line: "extends": "@tsconfig/strictest/tsconfig.json"
- 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:
- Unzip the migration-test.zip file
> cd "migration-test"
> npm install
This will create the node_modules folder next to and not within the migration-test-1 folder> cd migration-test-1
> ng update @angular/cdk
- 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:
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