-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Failing to migrate from Angular v18 to v19 in monorepo #29798
Comments
For me specifically this migration step fails { Reason: Cannot update project "xxx" to use the application builder. Only "@angular-devkit/build-angular:browser-esbuild" and "@angular-devkit/build-angular:browser" can be automatically migrated. My project contains MFE projects ( using webpack), is this the reason? |
Thanks for reporting this! @joelcorrales could you please share the @isunilmekala, your issue is unrelated. It's from an Angular CLI migration, which we don't control. It's not an error that blocks you since it doesn't error the migration. It continues to run all the migrations. That particular migration is meant to be an optional migration to convert your tasks to use the |
@leosvelperez sure! Here it is:
I also tried different approches, like incremental migration (19.8 - 20.0 - 20.1, etc) and it always fails in the same step |
Weird. I can't reproduce the issue. From your error logs, it's throwing at https://github.com/nrwl/nx/blob/master/packages/nx/src/command-line/migrate/migrate.ts#L1814 when accessing I'll need a repro so I can troubleshoot this further. If you can't provide one, you can try debugging this by running: NX_MIGRATE_USE_LOCAL=true NX_MIGRATE_SKIP_INSTALL=true pnpm nx migrate --run-migrations |
@leosvelperez I don't think I can provide one, I ran the command you pasted and this is the result:
Does it make a difference that is a monorepo with several libs and apps? |
I suggested that command so you could set some breakpoints in your
It doesn't. The failure is unrelated to the amount of projects or the structure of your workspace. I guess we can try to check one more thing. Can you paste the contents of the files |
@leosvelperez sure, this is the @angular/core/package.js
and here @angular/core/schematics/migrations.json
|
Is that what you have in What version of the package do you have in your repo's root |
@leosvelperez I notice that, yes that's the version inside the |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
After running the migration command, install deps and run the migrations in the json file, the migrations fails.
Expected Behavior
It should run the migrations and have the apps working with Angular@19
GitHub Repo
No response
Steps to Reproduce
npx nx migrate latest
pnpm install
pnpm exec nx migrate --run-migrations
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
If it helps, here is the complete list of dependencies of the project
The text was updated successfully, but these errors were encountered: