Skip to content

Upgrade 13 to 14 build memory issue #23280

Closed
@zehavibarak

Description

@zehavibarak

Exception on ng build:

(node:60532) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead (Use node --trace-deprecation ...` to show where the warning was created)
\ Generating browser application bundles (phase: building)...
<--- Last few GCs --->

[60532:041F4940] 91104 ms: Mark-sweep 1005.3 (1045.5) -> 999.7 (1048.0) MB, 341.2 / 0.0 ms (average mu = 0.195, current mu = 0.022) allocation failure scavenge might not succeed
[60532:041F4940] 91971 ms: Mark-sweep 1007.8 (1048.0) -> 1002.0 (1050.2) MB, 859.1 / 0.0 ms (average mu = 0.085, current mu = 0.009) allocation failure scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 00BFE90F v8::internal::Heap::AllocateExternalBackingStore+1551`

This is a regression from v13.1.

Version

Angular CLI: 14.0.0
Node: 16.15.0
Package Manager: npm 8.12.1
OS: win32 ia32

Angular: 14.0.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, platform-browser, platform-browser-dynamic
... platform-server, router

Package Version

@angular-devkit/architect 0.1400.0
@angular-devkit/build-angular 14.0.0
@angular-devkit/build-webpack 0.1400.0
@angular-devkit/core 14.0.0
@angular-devkit/schematics 14.0.0
@angular/flex-layout 13.0.0-beta.38
@nguniversal/express-engine 14.0.0
@schematics/angular 14.0.0
ng-packagr 14.0.0
rxjs 7.5.5
typescript 4.6.4
webpack 5.73.0

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