Skip to content

EMFILE: too many open files when upgrading to 4.44.0 #5989

@rwv

Description

@rwv

Rollup Version

4.44.0

Operating System (or Browser)

macOS and windows

Node Version (if applicable)

lts

Link To Reproduction

Sorry currently no minimal reproduction yet — the problem occurs consistently during vite build in a project with many dependencies (for example icon libs).

Expected Behaviour

Build should complete without hitting the system open file limit.

Actual Behaviour

Upgrading to 4.44.0 causes EMFILE: too many open files errors during build.
Downgrading back to 4.43.0 immediately resolves it.

This seems related to #5986 which removed the limit on max parallel file operations.

Example error (simplified):

[commonjs--resolver] Could not load some.js: EMFILE: too many open files
    at async open (node:internal/fs/promises:639:25)
    at async Object.readFile (node:internal/fs/promises:1246:14)
    ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions