-
Notifications
You must be signed in to change notification settings - Fork 27k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: coreIssues related to the framework runtimeIssues related to the framework runtimearea: migrationsIssues related to `ng update`/`ng generate` migrationsIssues related to `ng update`/`ng generate` migrations
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
ng generate @angular/core:route-lazy-loading is failing after selecting the path in your project should be migrated.
Cannot read properties of undefined (reading 'kind') is the error message.
Minimal Reproduction
update to angular version 19
run ng generate @angular/core:route-lazy-loading
it will ask for Which path in your project should be migrated?
press enter
gets error "Cannot read properties of undefined (reading 'kind')"
Exception or Error
Your Environment
Angular CLI: 19.0.0
Node: 20.18.0
Package Manager: npm 10.9.0
OS: win32 x64
Angular: 19.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1802.12
@angular-devkit/build-angular 19.0.0
@angular-devkit/core 18.2.12
@angular-devkit/schematics 19.0.0
@angular/cdk 18.2.14
@schematics/angular 19.0.0
rxjs 7.8.1
typescript 5.6.3
zone.js 0.15.0
Anything else relevant?
No response
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: coreIssues related to the framework runtimeIssues related to the framework runtimearea: migrationsIssues related to `ng update`/`ng generate` migrationsIssues related to `ng update`/`ng generate` migrations