FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
no…no…no…
can you give me your ionic info
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
no…no…no…
can you give me your ionic info
Mate i am also not able to run this command, so i have to use ionic cordova run android
command.
Below is my ionic info:
global packages:
@ionic/cli-utils : 1.0.0
Cordova CLI : 6.5.0
Ionic CLI : 3.0.0
local packages:
@ionic/app-scripts : 1.3.7
@ionic/cli-plugin-cordova : 1.0.0
@ionic/cli-plugin-ionic-angular : 1.0.0
Ionic Framework : ionic-angular 3.2.1
System:
Node : v7.10.0
OS : Windows 8.1
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
Have you solved this problem?
Can you create a simple Ionic project on Github that causes this behaviour? Then maybe other people can try to solve it.
Working with this command: ionic cordova run android
Will checkout this command (ionic cordova run android --prod
) later
with no --prod,it’s work for me too…but when --prod ,error occurs.
Yes, Same here. Because --prod is taking too much load on my RAM. And my RAM memory gets the full usage, i get the error of heap out of memory.
ok ,i have update my demo code to github:demo code
in my plugins i add some other ,but it’s too big for me to upload ,i will upload it soon
pls help ,thx!!!
Ok, what exact commands should I run after downloading this? CLI v3?
yes
global packages:
@ionic/cli-utils : 1.0.0 Cordova CLI : 7.0.1 Ionic CLI : 3.0.0
local packages:
@ionic/app-scripts : 1.3.7 @ionic/cli-plugin-cordova : 1.0.0 @ionic/cli-plugin-ionic-angular : 1.0.0 Ionic Framework : ionic-angular 3.2.1
System:
Node : v6.10.3
And the command to run?
ionic cordova build android --prod
You have only uploaded 12 pages. I think in 12 pages this command will run. My command is working in 12 pages but i have more than 20pages. So it’s breaking.
hehe!!! pls have a try…running it ,and tell me the result
ionic cordova build android --prod
I get a build failure:
[15:00:44] typescript: src/pages/quotation/Chat/partQuotation.ts, line: 61
Cannot find name 'Model_OfferOrderDetail'.
L61: OfferOrderDetail:Model_OfferOrderDetail={
L62: OfferOrderID:"",
[15:00:44] typescript: src/pages/quotation/MyOrder/CenterPartQuotation.ts, line: 57
Cannot find name 'Model_OfferOrderDetail'.
L57: OfferOrderDetail:Model_OfferOrderDetail={
L58: OfferOrderID:"",
[15:00:44] typescript: src/providers/QuotationViewModel/QuotationModelConvert.ts, line: 9
Cannot find name 'Model_Dictionary'.
L8: var model:Model_Dictionary={
L9: DictCode:dictCode,
L10: DictName:dictName,
I get more of these than I can post here
But after that the project actually builds, without any problems.
Not for me. www/build
is empty.
sorry !!some plugins not in config.xml file
Showing this is no help, you have to readd them on the command line (like I showed you with the wechat plugin) and then commit again.
I can now build the state from Github with “only” ~8 warnings, but everything else is working fine. Node takes around 1200 MB of Memory at the peak.