Skip to content
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

ng update @angular/core@19 @angular/cli@19 Failed. #29560

Closed
1 task done
oritpersik opened this issue Feb 3, 2025 · 0 comments · Fixed by #29564
Closed
1 task done

ng update @angular/core@19 @angular/cli@19 Failed. #29560

oritpersik opened this issue Feb 3, 2025 · 0 comments · Fixed by #29564

Comments

@oritpersik
Copy link

Command

update

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

18

Description

I'm running NODE_OPTIONS="--max-old-space-size=8192" ng update @angular/core@19 @angular/cli@19
but the command fails with
❯ Update '@angular/ssr' import paths to use the new '/node' entry point when 'CommonEngine' is detected.
✖ Migration failed: Map maximum size exceeded
See "/tmp/ng-pCWODy/angular-errors.log" for further details

Minimal Reproduction

Node version: v22.13.1
My projects is not using ssr at all. how can i skip this migration ?

Image

This is the tmp file with the error:

Image

Exception or Error

![Image](https://github.com/user-attachments/assets/e833fe0f-a9b5-4fcd-b81e-8bc1a63a557f)
this is the tmp file with the error:

Your Environment

Angular CLI: 19.1.5
Node: 22.13.1
Package Manager: npm 10.9.2
OS: linux x64

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

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.901.13
@angular-devkit/build-angular   19.1.5
@angular-devkit/core            9.1.13
@angular-devkit/schematics      19.1.5
@angular/cdk                    18.2.14
@angular/cli                    19.1.5
@angular/material               18.2.14
@schematics/angular             19.1.5
ng-packagr                      19.1.2
rxjs                            7.8.1
typescript                      5.5.4
zone.js                         0.15.0

Anything else relevant?

I must upgrade our angular product to angular 19, please help me to resolve this issue as soon as possible.

alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Feb 3, 2025
…ot a dependency

This commit updates the `update-ssr-imports` migration to not run when the @angular/ssr` package is not listed as a dependency.

Closes angular#29560
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Feb 3, 2025
…ot a dependency

This commit updates the `update-ssr-imports` migration to not run when the @angular/ssr` package is not listed as a dependency.

Closes angular#29560
alan-agius4 added a commit that referenced this issue Feb 3, 2025
…ot a dependency

This commit updates the `update-ssr-imports` migration to not run when the @angular/ssr` package is not listed as a dependency.

Closes #29560

(cherry picked from commit c716ce1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant