Skip to content

Angular 19 SSR Build Fails with [email protected], (Resolved by Upgrading to [email protected]) #29918

Closed as duplicate of#27674
@StefanKern

Description

@StefanKern

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 [email protected], 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions