Skip to main content
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory in Ionic 3

When I run an Ionic 3 project using the ionic serve command, then I am getting this error:

Screenshot of FATAL ERROR: ineffective mark-compacts near heap limit Allocation failed - JavaScript

Answer*

Cancel
7
  • 30
    For context, Node 12 has a different heap management strategy which is based on available memory instead of using defaults. More details here: foundation.nodejs.org/announcements/2019/04/24/…
    Derek Dowling
    –  Derek Dowling
    2019-12-19 01:20:10 +00:00
    Commented Dec 19, 2019 at 1:20
  • We updated to Node 12 and the error went away, easier than managing heap on Node 10
    Raffaeu
    –  Raffaeu
    2020-05-25 09:12:15 +00:00
    Commented May 25, 2020 at 9:12
  • 1
    @NitishKumar I'm still receiving the error with Node 12 /shrug. The accepted should be whichever best solves the OP's use case -- though you'd've hoped they would have selected one of the answers at this point.
    ruffin
    –  ruffin
    2020-06-22 20:35:25 +00:00
    Commented Jun 22, 2020 at 20:35
  • this one only worked for me but in angular project.
    Anup Bangale
    –  Anup Bangale
    2020-06-30 11:40:16 +00:00
    Commented Jun 30, 2020 at 11:40
  • 2
    @DerekDowling Wayback cause link broken: web.archive.org/web/20191103115941/https://…
    Grim
    –  Grim
    2020-08-27 08:15:09 +00:00
    Commented Aug 27, 2020 at 8:15

Morty Proxy This is a proxified and sanitized view of the page, visit original site.