It takes long time to lunch app (i meant the white screen in the beginning ) and --prod not working

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::factory::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.

What is your ionic info output?

image

ionic build android --prod --release when i use this statment i get this error

also i created sign apk it also take long time

That is not the output of running ionic info in the command line in your project.

Ionic:

ionic (Ionic CLI) : 4.1.2 (C:\Users\sofe9\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : not available
Cordova Plugins : cordova-plugin-ionic-webview 1.2.0, (and 6 other plugins)

System:

NodeJS : v8.9.4 (C:\Program Files\nodejs\node.exe)
npm : 5.6.0
OS : Windows 10

sorry i didn’t give u the right info cause im new to ionic :slight_smile:

That seems wrong. Don’t you have a Cordova platform added? What does ionic cordova platform list return?

  1. Does ionic serve work?
  2. Does ionic build work?
  3. Does ionic build --prod work?

Ionic serve and run works but build not working
How i can fix it

cordova platform ls
Installed platforms:
android 7.0.0
ios 4.5.5
Available platforms:
browser ~5.0.1
osx ~4.0.1
windows ~5.0.0
www ^3.12.0

I didn’t ask about run. If ionic build does not work, post its complete output you are getting.

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: https://ionic.zone/cordova/update

okay i will read about it thank u so much:hibiscus::hibiscus::hibiscus::hibiscus:

npm info cordova version
8.0.0
when i type this i found that i have cordova

ionic cordova build android --prod --release

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::factory::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.

i solve this problem but i still have the same problem