Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory #11605


User avatar
0
muhittincelik created

Hi,

I got the following error. How can i resolve this error.

[email protected] start ng serve --host 0.0.0.0 --port 4200

Warning: This is a simple server for use in testing or debugging Angular applications locally. It hasn't been reviewed for security issues.

Binding this server to an open connection can result in compromising your application or computer. Using a different host than the one passed to the "--host" flag might result in websocket connection issues. You might need to use "--disable-host-check" if that's the case. One or more browsers which are configured in the project's Browserslist configuration will be ignored as ES5 output is not supported by the Angular CLI. Ignored browsers: kaios 2.5, op_mini all

  • Generating browser application bundles (phase: setup)... TypeScript compiler options "target" and "useDefineForClassFields" are set to "ES2022" and "false" respectively by the Angular CLI. To control ECMA version and features use the Browerslist configuration. For more information, see https://angular.io/guide/build#configuring-browser-compatibility \ Generating browser application bundles (phase: sealing)... <--- Last few GCs --->

[32612:0922B480] 18951 ms: Mark-sweep 965.1 (1043.3) -> 950.3 (1037.5) MB, 261.4 / 0.0 ms (average mu = 0.175, current mu = 0.105) allocation failure; scavenge might not succeed [32612:0922B480] 19236 ms: Mark-sweep 960.2 (1045.9) -> 952.2 (1032.1) MB, 278.9 / 0.0 ms (average mu = 0.102, current mu = 0.021) allocation failure; scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory 1: 017C80BB v8::internal::Heap::PageFlagsAreConsistent+3323 2: 017BBD97 v8::internal::Heap::CollectGarbage+1767 3: 017D00B7 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath+2439


1 Answer(s)
  • User Avatar
    0
    muhittincelik created

    I solved the problem. I deinstall/install node.js and install yarn again, solved the problem.

    Muhittin