Error in ionic cord build android --prod

FATAL ERROR: CALL_AND_RETRY_LAST Selection failed - a bunch of JavaScript from memory

Error starting command: ion cordova build android --prod

Note that the ion collector android , ion run android and ion service is operating normally. p>

I read a lot of topics that say that when the project gets bigger, it will stop working.

He worked the day before the release. It stopped working when we added more files and JSON to translate the application into several languages.

Is this a known issue? Is there any solution?

PLEASE CHECK FOR MORE DETAILS: https://youtu.be/oCN7iSt8rzg

Attached Error Image:

enter image description here

Ion Information:

enter image description here

+6
source share
2 answers

Solved by changing my ionic.cmd file in C: \ Users \ AppData \ Roaming \ npm, adding - max_old_space_size . I installed my 8096 .

@if EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" --max_old_space_size=8096 "%~dp0\node_modules\ionic\bin\ionic" %*
) ELSE (
@SETLOCAL
@set PATHEXT=%PATHEXT:;.JS;=;%
node --max_old_space_size=8096 "%~dp0\node_modules\ionic\bin\ionic" %*
)
Run codeHide result

Good luck Check the actual source: https://github.com/ionic-team/ionic-cli/issues/1453

+6
source

Although the problem is resolved by the OP, this is a temporary solution. The actual problem is related to the string operations that are involved in the project.

OP , JSON , , node -memwatch . 8 , .

, -, , .

UPDATE: Ionic CLI 3.5.0,

0

All Articles