-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Open
Labels
area: migrationsIssues related to `ng update`/`ng generate` migrationsIssues related to `ng update`/`ng generate` migrationshelp wantedAn issue that is suitable for a community contributor (based on its complexity/scope).An issue that is suitable for a community contributor (based on its complexity/scope).needs: clarificationThis issue needs additional clarification from the reporter before the team can investigate.This issue needs additional clarification from the reporter before the team can investigate.
Milestone
Description
Command
generate
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
Error cannot find tsconfig file when running inject migration.
Minimal Reproduction
I want to migrate my app injections using command ng generate @angular/core:inject with all defaults options and I got error that it cannot find the tsconfig but my tsconfig file is at the root folder. How do this command determine the path of the tsconfig?
Exception or Error
Could not find any tsconfig file. Cannot run the inject migration.
Your Environment
Angular CLI : 21.0.4
Angular : 21.0.6
Node.js : 24.11.0
Package Manager : npm 11.4.2
Operating System : win32 x64
┌───────────────────────────────┬───────────────────┬───────────────────┐
│ Package │ Installed Version │ Requested Version │
├───────────────────────────────┼───────────────────┼───────────────────┤
│ @angular-devkit/build-angular │ 21.0.4 │ 21.0.4 │
│ @angular/animations │ 21.0.6 │ 21.0.6 │
│ @angular/build │ 21.0.4 │ 21.0.4 │
│ @angular/cdk │ 21.0.5 │ 21.0.5 │
│ @angular/cli │ 21.0.4 │ 21.0.4 │
│ @angular/common │ 21.0.6 │ 21.0.6 │
│ @angular/compiler │ 21.0.6 │ 21.0.6 │
│ @angular/compiler-cli │ 21.0.6 │ 21.0.6 │
│ @angular/core │ 21.0.6 │ 21.0.6 │
│ @angular/forms │ 21.0.6 │ 21.0.6 │
│ @angular/platform-browser │ 21.0.6 │ 21.0.6 │
│ @angular/router │ 21.0.6 │ 21.0.6 │
│ rxjs │ 7.8.2 │ ~7.8.0 │
│ typescript │ 5.9.3 │ ~5.9.2 │
│ vitest │ 4.0.18 │ ^4.0.8 │
│ zone.js │ 0.15.1 │ ^0.15.1 │
└───────────────────────────────┴───────────────────┴───────────────────┘
Anything else relevant?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: migrationsIssues related to `ng update`/`ng generate` migrationsIssues related to `ng update`/`ng generate` migrationshelp wantedAn issue that is suitable for a community contributor (based on its complexity/scope).An issue that is suitable for a community contributor (based on its complexity/scope).needs: clarificationThis issue needs additional clarification from the reporter before the team can investigate.This issue needs additional clarification from the reporter before the team can investigate.