angular / angular-cli

CLI tool for Angular
https://cli.angular.io
MIT License
26.76k stars 11.98k forks source link

Call retries were exceeded exception while ng build #24806

Closed YSFKBDY closed 1 year ago

YSFKBDY commented 1 year ago

Command

build

Is this a regression?

The previous version in which this bug was not present was

No response

Description

My Angular 10 project is getting bigger, and at some point I've started to get an error while trying to build with ng build --prod. When I try to build, I am getting an error at the point of Generating ES5 bundles for differential loading... and it says:

An unhandled exception occurred: Call retries were exceeded
See "...\angular-errors.log" for further details.

Error Log:

[error] Error: Call retries were exceeded
    at ChildProcessWorker.initialize (...\node_modules\jest-worker\build\workers\ChildProcessWorker.js:193:21)
    at ChildProcessWorker._onExit (...\node_modules\jest-worker\build\workers\ChildProcessWorker.js:274:12)
    at ChildProcess.emit (events.js:400:28)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12)

I've noticed that if I comment out around 1k lines of my code at any of my components and try to build, it works. But when I re-open it and build again, then it gives the same error. I need to use differential loading, so I can't close it.

Node.js version: v14.21.2 Angular version: ~10.2.0

tsconfig.json:

  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "downlevelIteration": true,
    "experimentalDecorators": true,
    "moduleResolution": "node",
    "importHelpers": true,
    "target": "es2015",
    "module": "es2020",
    "lib": [
      "es2019",
      "es2018",
      "dom"
    ]
  }
}

What I've tried so far?

Minimal Reproduction

I don't know how to reproduce the issue. My Angular 10 project is getting bigger, and at some point I've started to get an error while trying to build with ng build --prod.

Exception or Error

[error] Error: Call retries were exceeded
    at ChildProcessWorker.initialize (...\node_modules\jest-worker\build\workers\ChildProcessWorker.js:193:21)
    at ChildProcessWorker._onExit (...\node_modules\jest-worker\build\workers\ChildProcessWorker.js:274:12)
    at ChildProcess.emit (events.js:400:28)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12)

Your Environment

Angular CLI: 10.2.0
Node: 14.21.2
OS: win32 x64

Angular: 10.2.3
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1002.0
@angular-devkit/build-angular   0.1002.0
@angular-devkit/core            10.2.0
@angular-devkit/schematics      10.2.0
@angular/cdk                    11.0.2
@angular/cli                    10.2.0
@angular/localize               11.0.3
@angular/material               11.0.3
@schematics/angular             10.2.0
@schematics/update              0.1002.0
rxjs                            6.6.3
typescript                      4.0.2

Anything else relevant?

No response

alan-agius4 commented 1 year ago

Angular version 10 is no longer supported.

See: https://angular.io/guide/releases#actively-supported-versions

angular-automatic-lock-bot[bot] commented 1 year ago

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.