Skip to content

application builder with i18n: An unhandled exception occurred: EMFILE: too many open files, #26014

Description

@zip-fa

Command

build

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Hi.
I have project with 19 locales in it. Build gives up when using application builder with this exception:

An unhandled exception occurred: EMFILE: too many open files, open 'C:\Users\123\WebstormProjects\123\dist\456\server\ro\chunk-XKJBHO6U.mjs'
Fatal error writing debug log file: Error: EMFILE: too many open files, open 'C:\Users\123\AppData\Local\Temp\ng-P9vNh5\angular-errors.log'
Error: EMFILE: too many open files, open 'C:\Users\123\WebstormProjects\123\dist\456\server\ro\chunk-XKJBHO6U.mjs'

Log file is empty.
If you leave only 2 languages, the build will end.

Minimal Reproduction

ng build

Exception or Error

An unhandled exception occurred: EMFILE: too many open files, open 'C:\Users\123\WebstormProjects\123\dist\456\server\ro\chunk-XKJBHO6U.mjs'
Fatal error writing debug log file: Error: EMFILE: too many open files, open 'C:\Users\123\AppData\Local\Temp\ng-P9vNh5\angular-errors.log'
Error: EMFILE: too many open files, open 'C:\Users\123\WebstormProjects\123\dist\456\server\ro\chunk-XKJBHO6U.mjs'

Your Environment

Angular CLI: 17.0.0-next.8
Node: 18.18.1
Package Manager: npm 9.8.1
OS: win32 x64

Angular: 17.0.0-next.7
... animations, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1700.0-next.8
@angular-devkit/build-angular   17.0.0-next.8
@angular-devkit/core            17.0.0-next.8
@angular-devkit/schematics      17.0.0-next.8
@angular/cdk                    17.0.0-next.6
@angular/cli                    17.0.0-next.8
@angular/material               17.0.0-next.6
@angular/ssr                    17.0.0-next.8
@schematics/angular             16.2.5
rxjs                            7.8.1
typescript                      5.2.2
zone.js                         0.14.0

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions