Skip to content

build sometime fails with exit code 3221226356 on windows #32408

@ChristopherKuehnelNexus

Description

@ChristopherKuehnelNexus

Command

build

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.2.20

Description

Hello,

I'm facing an issue I can not find the reason for. We have libraries that we want to update from angular 18 to 20. Sadly when building them on our build server we often run into ELIFECYCLE  Command failed with exit code 3221226356.. I can reproduce this locally on my machine (Windows 10) and on another machine (Windows 11). I was not able to reproduce this on a ubuntu 24 machine.

Minimal Reproduction

I have added the source code (since it's business code, I removed most of it, but the error persists for me) here: https://github.com/ChristopherKuehnelNexus/angularheap

There are also 3 .txt files that do include different outputs depending on what I did.

Exception or Error

ELIFECYCLE  Command failed with exit code 3221226356.

Your Environment

Angular CLI: 20.3.14
Node: 24.10.0
Package Manager: pnpm 10.28.0
OS: win32 x64


Angular: 20.3.16
... common, compiler, compiler-cli, core, platform-browser
... platform-browser-dynamic

Package                         Version
---------------------------------------
@angular-devkit/architect       0.1802.20
@angular-devkit/build-angular   20.3.14
@angular-devkit/core            20.3.14
@angular-devkit/schematics      20.3.14
@angular/cli                    20.3.14
@schematics/angular             18.2.20
ng-packagr                      20.3.2
rxjs                            7.8.2
typescript                      5.9.3
webpack                         5.104.1
zone.js                         0.15.1

Anything else relevant?

I hoped to find a cause here: https://stackoverflow.com/questions/79863129/ng-build-crashes-with-heap-corruption-exit-code-1073740940-on-node-js-24-duri but sadly still no idea. I also tried some circular dependency scan tool but without any luck.

Since this is my first report here, I hope to have provided all required information and choosing the correct repo 😃

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions