it takes long time to lunch app (i meant the white screen in the beginning ) and when use ionic cordova run android --prod
i get that
ionic-app-scripts build --prod --platform android
[20:22:43] ionic-app-scripts 3.2.0
[20:22:43] build prod started …
[20:22:43] clean started …
[20:22:43] clean finished in 21 ms
[20:22:43] copy started …
[20:22:43] deeplinks started …
[20:22:43] deeplinks finished in 163 ms
[20:22:43] ngc started …
[20:23:01] ngc finished in 17.65 s
[20:23:01] preprocess started …
[20:23:01] preprocess finished in 1 ms
[20:23:01] webpack started …
[20:23:02] copy finished in 18.61 s
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node_module_register
2: v8::internal::FatalProcessOutOfMemory
3: v8::internal::FatalProcessOutOfMemory
4: v8::internal::NewStruct
5: std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Reallocate
6: std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Reallocate
7: std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Reallocate
8: std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Reallocate
9: 000003E3D94047A1
[ERROR] An error occurred while running subprocess ionic-app-scripts.
ionic-app-scripts build --prod --platform android exited with exit code 3.
Re-running this command with the --verbose flag may provide more information.
Your Cordova tooling seems to be out of date, which might be causing all kinds of problems.
You can read about how to figure out the current Cordova versions and how to update CLI, platforms and plugins here: How to update Cordova CLI, Platforms and Plugins · ionic.zone
ionic-app-scripts build --prod --target cordova --platform android
[18:05:19] ionic-app-scripts 3.2.0
[18:05:19] build prod started …
[18:05:19] clean started …
[18:05:19] clean finished in 10 ms
[18:05:19] copy started …
[18:05:20] deeplinks started …
[18:05:20] deeplinks finished in 163 ms
[18:05:20] ngc started …
[18:05:35] ngc finished in 15.46 s
[18:05:35] preprocess started …
[18:05:35] preprocess finished in less than 1 ms
[18:05:35] webpack started …
[18:05:36] copy finished in 16.30 s
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node_module_register
2: v8::internal::FatalProcessOutOfMemory
3: v8::internal::FatalProcessOutOfMemory
4: v8::internal::NewStruct
5: std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Reallocate
6: std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Reallocate
7: std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Reallocate
8: std::vector<v8::internal::compiler::MoveOperands * __ptr64,v8::internal::ZoneAllocator<v8::internal::compiler::MoveOperands * __ptr64> >::_Reallocate
9: 0000036B081047A1
[ERROR] An error occurred while running subprocess ionic-app-scripts.
ionic-app-scripts build --prod --target cordova --platform android exited with exit code 3.
Re-running this command with the --verbose flag may provide more information.