Content-Length: 267887 | pFad | http://github.com/angular/angular/issues/61739

03 Unable to execute ng g @angular/core:control-flow on V20 · Issue #61739 · angular/angular · GitHub
Skip to content

Unable to execute ng g @angular/core:control-flow on V20 #61739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nikhild64 opened this issue May 29, 2025 · 4 comments
Open

Unable to execute ng g @angular/core:control-flow on V20 #61739

nikhild64 opened this issue May 29, 2025 · 4 comments
Labels
area: docs Related to the documentation
Milestone

Comments

@nikhild64
Copy link

nikhild64 commented May 29, 2025

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

Yes

Description

Tried executing ng generate @angular/core:control-flow on angular CLI and i get the error

Schematic "control-flow" not found in collection "@angular/core".

Tried on newly created v20 project and even updating older from v19 to v20

Image

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

Schematic "control-flow" not found in collection "@angular/core".

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 20.0.0
Node: 22.2.0
Package Manager: npm 10.7.0
OS: win32 x64

Angular: 20.0.0
... build, cli, common, compiler, compiler-cli, core, forms
... platform-browser, router

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.2000.0
@angular-devkit/core         20.0.0
@angular-devkit/schematics   20.0.0
@schematics/angular          20.0.0
rxjs                         7.8.2
typescript                   5.8.3
zone.js                      0.15.1

Anything else?

No response

@nikhild64
Copy link
Author

On checking i found , schematic was moved from collections.json to migration.json in core but with optional flag true and now when use wants to execute this on later stage it wont be possible
Changes were done in #60492

Solution i would suggest is keep it in collections.json as well so this can be executed on CLI on later stage also

@JeanMeche
Copy link
Member

JeanMeche commented May 29, 2025

The control flow migration schematic can be re-run with ng update @angular/core --migrate-only --from=19 --to=20

@JeanMeche JeanMeche added the area: docs Related to the documentation label May 29, 2025
@ngbot ngbot bot added this to the needsTriage milestone May 29, 2025
@msmallest
Copy link
Contributor

The temporary CLI v20 which is installed for previous versions cannot find the new name

> ng update @angular/core --name=control-flow-migration
The installed Angular CLI version is outdated.
Installing a temporary Angular CLI versioned 20.0.0 to perform the update.
Using package manager: npm
Collecting installed dependencies...
Found 89 dependencies.
Cannot find migration 'control-flow-migration' in '@angular/core'.

Repro https://stackblitz.com/edit/stackblitz-starters-dpwe5a2h?file=src%2Fmain.ts

@JeanMeche
Copy link
Member

ng update @angular/core --name=control-flow-migration can only be run on a v20 project.

This is to re-run the schematics on a project that has already been updated to v20.

Also with #61773 we intend to bring back the previous ng generate schematics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs Related to the documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/angular/angular/issues/61739

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy