Skip to content

Angular migration fails on workspace projects #63294

@sheikalthaf

Description

@sheikalthaf

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

core

Is this a regression?

Yes

Description

Angular migration fails on workspace projects (there is no src folder in root).

This error occurs when i update my project from v19 to v20.2 via ng update.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

[error] Error: Could not find any files to migrate under the path undefined. Cannot run the control flow migration.
    at runControlFlowMigration (/Users/xxxx/Developer/x/node_modules/.pnpm/@angular+core@20.2.0_@angular+compiler@20.2.0_rxjs@7.8.1_zone.js@0.15.1/node_modules/@angular/core/schematics/bundles/control-flow-migration.cjs:1882:15)
    at /Users/xxxx/Developer/x/node_modules/.pnpm/@angular+core@20.2.0_@angular+compiler@20.2.0_rxjs@7.8.1_zone.js@0.15.1/node_modules/@angular/core/schematics/bundles/control-flow-migration.cjs:1861:35
    at async callRuleAsync (/private/var/folders/gs/hkj5vjpd6jn5gp2l02844ydh0000gn/T/angular-cli-packages-LPC45Q/node_modules/.pnpm/@angular-devkit+schematics@20.2.0/node_modules/@angular-devkit/schematics/src/rules/call.js:77:18)

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

> x@0.0.0 ng /Users/sheikalthaf/Developer/x
> ng v


     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 19.0.0
Node: 22.16.0
Package Manager: pnpm 10.11.0
OS: darwin arm64

Angular: 20.2.0
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1900.0
@angular-devkit/build-angular   19.0.0
@angular-devkit/core            19.1.8
@angular-devkit/schematics      19.1.8
@angular/build                  19.0.0
@angular/cli                    19.0.0
@angular/ssr                    19.0.0
@schematics/angular             19.0.0
ng-packagr                      19.0.0
rxjs                            7.8.1
typescript                      5.9.2

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: migrationsIssues related to `ng update`/`ng generate` migrationsopen for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions