webpack / watchpack

Wrapper library for directory and file watching.
MIT License
377 stars 105 forks source link

"too many open files" errors #219

Closed php4fan closed 1 year ago

php4fan commented 2 years ago

Steps to reproduce:

Create a new Angular project and run ng-serve:

ng new my-project
cd my-project
ng serve

The console gets inundated with tons of repetitions of this error:

Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/teo/...../node_modules/typescript/lib'
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/teo/...../node_modules/typescript'
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/teo/...../node_modules/typescript/lib'
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/teo/...../node_modules/typescript'
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/teo/...../node_modules/typescript/lib'
...

Bug 169 seems to describe a similar issue, but it's closed.

GeeWee commented 2 years ago

I am also getting similar errors on MacOS M1 - setting ulimit seems to have no effect.

alexander-akait commented 2 years ago

We need more details here, as minimum a structure of a project and watch options

alexander-akait commented 1 year ago

Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks!