I have angular app and which is build automatically to firebase. So upon build sucessful it will deplyoe to the firebase. But gitbuild failed and showing that heap out of memory? what does it mean and how to solve this issue?
Run npm ci && npm run-script build-dev
npm ci && npm run-script build-dev
shell: /usr/bin/bash -e ***0***
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
added 1291 packages, and audited 1292 packages in 48s
156 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
> cohora-admin@0.0.0 build-dev
> ng build --configuration dev
- Generating browser application bundles (phase: setup)...
Warning: Entry point '@ckeditor/ckeditor5-angular' contains deep imports into '/home/runner/work/cohora-admin/cohora-admin/node_modules/@ckeditor/ckeditor5-watchdog/src/editorwatchdog'. This is probably not a problem, but may cause the compilation of entry points to be out of order.
- @ckeditor/ckeditor5-angular [es2015/esm2015] (https://github.com/ckeditor/ckeditor5-angular.git)
- ng2-search-filter [es2015/esm2015] (git+https://github.com/solodynamo/ng2-search-filter.git)
- angular-plotly.js [es2015/esm2015] ()
<--- Last few GCs --->
[1763:0x6b7b9c0] 164402 ms: Mark-sweep (reduce) 2019.0 (2082.7) -> 2017.7 (2082.7) MB, 3044.3 / 0.0 ms (average mu = 0.136, current mu = 0.015) allocation failure scavenge might not succeed
[1763:0x6b7b9c0] 167435 ms: Mark-sweep (reduce) 2019.2 (2083.0) -> 2018.4 (2083.2) MB, 3025.0 / 0.0 ms (average mu = 0.073, current mu = 0.003) allocation failure scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xb02930 node::Abort() [ng build --configuration dev]
2: 0xa18149 node::FatalError(char const*, char const*) [ng build --configuration dev]
3: 0xcdd16e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [ng build --configuration dev]
4: 0xcdd4e7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [ng build --configuration dev]
5: 0xe94b55 [ng build --configuration dev]
6: 0xe95636 [ng build --configuration dev]
7: 0xea3b5e [ng build --configuration dev]
8: 0xea45a0 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [ng build --configuration dev]
9: 0xea751e v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [ng build --configuration dev]
10: 0xe68a5a v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [ng build --configuration dev]
11: 0x11e18fc v8::internal::Runtime_AllocateInOldGeneration(int, unsigned long*, v8::internal::Isolate*) [ng build --configuration dev]
12: 0x15d5439 [ng build --configuration dev]
Aborted (core dumped)
Error: Process completed with exit code 134.
What could be the reason and how to fix that?