Search code examples
angularcordovaionic4ecmascript-5

Facing some issues while building ionic-4 project


I am facing some issues while building an ionic-4 project for android, the command line stops at Generating ES5 bundles for differential loading.

Here is the screenshot and error report:

Error Report

[error] Error: Call retries were exceeded
    at ChildProcessWorker.initialize (F:\Petrol Price App\27 New chart\app\node_modules\jest-worker\build\workers\ChildProcessWorker.js:193:21)
    at ChildProcessWorker.onExit (F:\Petrol Price App\27 New chart\app\node_modules\jest-worker\build\workers\ChildProcessWorker.js:263:12)
    at ChildProcess.emit (events.js:198:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)

Solution

  • Had similar issue and was able to fix my build by for the moment changing the tsconfig.app.json target from es2015 back down to es5, this disabled differential loading.

    Reference: https://angular.io/guide/deployment#differential-loading