Skip to content

serverless dev throws "EMFILE: too many open files" on macOS in v4.31.0 #13268

@jblackburn21

Description

@jblackburn21

Issue description

I was upgraded to v4.31.0 today, and now receive this error when running serverless dev on a project that works with previous versions. I have also confirmed that others on my team are experiencing the issue.

✖ Error: EMFILE: too many open files, watch
    at FSWatcher._handle.onchange (node:internal/fs/watchers:214:21)

Pinning a previous version in serverless.yml resolves the issue.

Context

Service Overview

  • Serverless Framework Version: 4.31.0
  • node v22.21.1
  • Mac OSX 15.7.2

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions