You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current default configuration for watchpack in the core-server package only excludes root level node_modules folders (see here) which will cause way to many watcher instances beeing opend in monorepository structures. As the result of 5k+ watchers beeing opened, either the OS will throw an "Watchpack Error (watcher): Error: EMFILE: too many open files" or will try to close thousands of watchers which takes ages. (10 minutes in my case, known issue in watchpack webpack/watchpack#222)
To Reproduce
Create a monorepository with node_modules folder in sub directories.
I have already tried updating the ignored list to **/node_modules which works way better. I would highly recommend making this list configurable to also exclude folders like build output, coverage etc.
The text was updated successfully, but these errors were encountered:
Describe the bug
The current default configuration for watchpack in the core-server package only excludes root level node_modules folders (see here) which will cause way to many watcher instances beeing opend in monorepository structures. As the result of 5k+ watchers beeing opened, either the OS will throw an "Watchpack Error (watcher): Error: EMFILE: too many open files" or will try to close thousands of watchers which takes ages. (10 minutes in my case, known issue in watchpack webpack/watchpack#222)
To Reproduce
storybook dev
with a breakpoint in thewatchEventSource.js
file https://github.com/webpack/watchpack/blob/main/lib/watchEventSource.js#L66System
Additional context
I have already tried updating the ignored list to
**/node_modules
which works way better. I would highly recommend making this list configurable to also exclude folders like build output, coverage etc.The text was updated successfully, but these errors were encountered: