ionic-team / ionic-team/ionic-cli
cli freezes while generating ES5 bundles
- Lenguaje dominante
- TypeScript
- Estrellas
- 2k
- Forks
- 682
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
**Description:**
after running the command `$ ionic cordova run android --device` the cli freezes at `Generating ES5 bundles for differential loading...`
**Steps to Reproduce:**
- `$ ionic cordova plaform add android`
- `$ ionic cordova run android --device`
**Output:**
```
ionic cordova run android --device --verbose
ionic:lib Terminal info: { ci: false, shell: '/bin/sh', tty: true, windows: false } +0ms
ionic:lib CLI global options: { _: [ 'cordova', 'run', 'android' ], help: null, h: null, verbose: true, quiet: null, interactive: true, color: true, confirm: null, json: null, device: true, project: null, '--': [] } +7ms
ionic:lib:project Project type from config: @ionic/angular (angular) +0ms
ionic:lib:project Project details: { configPath: '/Users/c.francia/Desktop/dicus/dicus/application/app/ionic.config.json', errors: [], context: 'app', type: 'angular' } +0ms
ionic Context: { binPath: '/Users/c.francia/.config/yarn/global/node_modules/ionic/bin/ionic', libPath: '/Users/c.francia/.config/yarn/global/node_modules/ionic', execPath: '/Users/c.francia/Desktop/application/app', version: '5.4.13' } +0ms
ionic:lib:integrations:cordova:config Loading Cordova Config (config.xml: '/Users/c.francia/Desktop/application/app/config.xml', package.json: '/Users/c.francia/Desktop/application/app/package.json') +0ms
ionic:lib:integrations:cordova:config Loading Cordova Config (config.xml: '/Users/c.francia/Desktop/application/app/config.xml', package.json: '/Users/c.francia/Desktop/application/app/package.json') +239ms
ionic:lib:telemetry Sending telemetry for command: 'ionic cordova run' [ 'android', '--device', '--verbose', '--interactive', '--color' ] +0ms
ionic:lib:build build options: {
ionic:lib:build '--': [],
ionic:lib:build engine: 'cordova',
ionic:lib:build platform: 'android',
ionic:lib:build project: undefined,
ionic:lib:build verbose: false,
ionic:lib:build configuration: undefined,
ionic:lib:build sourcemaps: undefined,
ionic:lib:build cordovaAssets: true,
ionic:lib:build watch: undefined,
ionic:lib:build type: 'angular'
ionic:lib:build } +0ms
ionic:lib:hooks Looking for ionic:build:before npm script. +0ms
ionic:lib:build Looking for ionic:build npm script. +133ms
> ng run app:ionic-cordova-build --platform=android
ng:analytics getGlobalAnalytics +0ms
ng:analytics Client Analytics config found: false +494ms
ng:analytics Analytics disabled. Ignoring all analytics. +0ms
ng:analytics getSharedAnalytics +0ms
Generating ES5 bundles for differential loading...
```
**My `ionic info`:**
```
Ionic CLI : 5.4.13 (/Users/c.francia/.config/yarn/global/node_modules/ionic)
Ionic Framework : @ionic/angular 4.11.7
@angular-devkit/build-angular : 0.803.21
@angular-devkit/schematics : 8.3.21
@angular/cli : 8.3.21
@ionic/angular-toolkit : 2.1.1
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.1.0, ios 5.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.2, (and 19 other plugins)
Utility:
cordova-res : 0.8.1
native-run : 0.3.0
System:
ios-sim : 8.0.2
NodeJS : v12.7.0 (/usr/local/lib/node_modules/node/bin/node)
npm : 6.11.3
OS : macOS Mojave
Xcode : Xcode 11.2.1 Build version 11B500
```
**Other Information:**
this happens when using the command `$ ionic cordova run android --device --lievreload` howerver at a different section
```
> cordova build android --device
[INFO] ... and 78 additional chunks
[ng] ℹ 「wdm」: Compiled successfully.
[cordova] Note: Some input files use or override a deprecated API.
[cordova] Note: Recompile with -Xlint:deprecation for details.
[cordova] Note: Some input files use unchecked or unsafe operations.
[cordova] Note: Recompile with -Xlint:unchecked for details.
> native-run android --app platforms/android/app/build/outputs/apk/debug/app-debug.apk --device --forward 8100:8100
```
if I leave it there then some time later (I don't know how much time I was out for lunch but longer than 20 minutes) then it will finish.
### Updates:
-these report files `report..json` are being created from the ionic-cli
-I've tried increasing the memory outlined in this [open issue](https://github.com/ionic-team/ionic-app-scripts/issues/1467) setting my node env to `export NODE_OPTIONS=--max_old_space_size=4096` however this is not solving the issue
-when stopping I get the error:
```
at new SubprocessError (/Users/c.francia/.config/yarn/global/node_modules/@ionic/utils-subprocess/dist/index.js:40:23)
at ChildProcess.
(/Users/c.francia/.config/yarn/global/node_modules/@ionic/utils-subprocess/dist/index.js:124:27)
at ChildProcess.emit (events.js:203:13)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
```
-whenever the error report is generated there is a `package-lock.json` file created, though yarn is the manager I am using
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.