JavaScript heap out of memory

i 「wdm」: Compiling...
webpack building...

<--- Last few GCs --->

[15304:0439F038]   461225 ms: Scavenge 963.8 (980.1) -> 963.7 (980.1) MB, 0.8 / 0.0 ms  (average mu = 0.874, current mu = 0.928) allocation failure
[15304:0439F038]   461389 ms: Mark-sweep (reduce) 963.7 (980.1) -> 960.2 (979.4) MB, 164.7 / 0.0 ms  (average mu = 0.822, current mu = 0.620) last resort GC in old space requested
[15304:0439F038]   461591 ms: Mark-sweep (reduce) 960.2 (975.4) -> 960.2 (972.4) MB, 201.6 / 0.1 ms  (average mu = 0.691, current mu = 0.000) last resort GC in old space requested


<--- JS stacktrace --->

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

Keep running into this webpack issue tried allocating more memory to node with env variables. Didn’t work, any insight?