My ionic 3 application working fine in Ionic serve , But when taking build it’s keep on stops with the following error
D:\Ionic3\cutePuppyPics>ionic cordova build android --prod
[INFO] Running app-scripts build: --prod --platform android --target cordova
[19:15:51] build prod started ...
[19:15:51] clean started ...
[19:15:51] clean finished in 9 ms
[19:15:51] copy started ...
[19:15:51] ngc started ...
[19:17:11] ngc finished in 80.44 s
[19:17:11] preprocess started ...
[19:17:11] deeplinks started ...
[19:17:26] deeplinks finished in 14.86 s
[19:17:26] optimization started ...
[19:17:28] copy finished in 96.76 s
[19:18:48] optimization finished in 82.16 s
[19:18:48] preprocess finished in 97.02 s
[19:18:48] webpack started ...
<--- Last few GCs --->
417081 ms: Mark-sweep 1052.7 (1437.3) -> 1052.6 (1437.3) MB, 549.2 / 0.0 ms [allocation failure] [scavenge might not succeed].
417593 ms: Mark-sweep 1052.6 (1437.3) -> 1052.6 (1437.3) MB, 511.0 / 0.0 ms [allocation failure] [scavenge might not succeed].
418148 ms: Mark-sweep 1052.6 (1437.3) -> 1072.9 (1419.3) MB, 555.1 / 0.0 ms [last resort gc].
418628 ms: Mark-sweep 1072.9 (1419.3) -> 1096.7 (1415.3) MB, 479.5 / 0.0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 000000200D3CFB49 <JS Object>
1: DoJoin(aka DoJoin) [native array.js:~129] [pc=00000315AEFE6C02] (this=000000200D304381 <undefined>,w=000000FF69DCAE69 <JS Array[414]>,x=414,N=000000200D3043C1 <true>,J=000000200D3AE4C9 <String[1]: >,I=000000200D3B46D9 <JS Function ConvertToString (SharedFunctionInfo 000000200D352DC9)>)
2: Join(aka Join) [native array.js:180] [pc=00000315AEFFA292] (this=000000200D304381 <undefined>...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
I have tried few of solutions from ionic forum , but no luck.
My ionic info
D:\Ionic3\cutePuppyPics>ionic info
cli packages: (C:\Users\rajamohamedb\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.10.2
ionic (Ionic CLI) : 3.10.3
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 2.1.4
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.6.1
System:
Android SDK Tools : 24.4.1
Node : v6.10.3
npm : 3.10.10
OS : Windows 7
Thanks in advance

:NewUninitializedFixedArray