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

Angular 19 SSR Build Fails with Node.js@22.2.0, (Resolved by Upgrading to Node.js@22.14.0) #29918

Closed
StefanKern opened this issue Mar 22, 2025 · 0 comments

Comments

@StefanKern
Copy link

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

Don't known / other

Is this a regression?

Yes

Description

After spending several hours troubleshooting why the SSR build was failing, it was discovered that upgrading to the latest Node.js version resolved the issue. This suggests there must be a bug when using Node.js@22.2.0, as Angular SSR applications do not build with this version. A bug report is being opened to address this compatibility issue.

Created app:

...>ng new angularapp
√ Which stylesheet format would you like to use? Sass (SCSS)     [ https://sass-lang.com/documentation/syntax#scss
          ]
√ Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? Yes
√ Would you like to use the Server Routing and App Engine APIs (Developer Preview) for this server application? No

According to https://angular.dev/reference/versions, this version should be compatible, but just isn't. It just hangs, shows building forever and does not provide any meaningful output (even with verbose).

I hope this helps someone who is stuck with a similar issue.

(used angular version: Angular CLI: 19.2.4)

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

There was no error, the build was just in an endless loop and now files where generated, no errors where shown (even with --verbose)

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

Angular CLI: 19.2.4
Node: 22.2.0 <-- was then working with 22.14.0
Package Manager: npm 10.8.1
OS: win32 x64

Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1902.4 (cli-only)
@angular-devkit/core         19.2.4 (cli-only)
@angular-devkit/schematics   19.2.4 (cli-only)
@schematics/angular          19.2.4 (cli-only)

Anything else?

No response

@JeanMeche JeanMeche transferred this issue from angular/angular Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants