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
One issue with this fix is the number is different per machine and depending on what else is running on the machine. One possible solution is to use an environment variable and fall back to a default value anyway.
There has also been mentions about using graceful-fs. However I had no luck when monkey patching it. This was the only thing that solved the issue for me. #250
We're encountering the exact same issue on our side.... I spent like a day messing with graceful-fs and happypack. In the end I had to disable happypack, but the error still appears, albeit less frequently than with happypack.
This still repros any time a loader adds a large number of assets to the compilation. The parallel modules work fine, but the asset emitting step crashes due to too many open file handles.
Activity
Added file limit on webpack webpack#3164
McPo commentedon Oct 20, 2016
Ive created a PR. for those suffering from this issue you can use it right away by setting your package.json to
Ive limited to 1000, but perhaps 500 is more reasonable.
You can to set it to a user defined value using the environment variable WEBPACK_FILE_LIMIT
#3166
MagicDuck commentedon Oct 20, 2016
We're encountering the exact same issue on our side.... I spent like a day messing with graceful-fs and happypack. In the end I had to disable happypack, but the error still appears, albeit less frequently than with happypack.
webpack-bot commentedon Aug 11, 2017
This issue had no activity for at least half a year.
It's subject to automatic issue closing if there is no activity in the next 15 days.
Limit the number of parallel processed modules
dmichon-msft commentedon Nov 20, 2017
This still repros any time a loader adds a large number of assets to the compilation. The parallel modules work fine, but the asset emitting step crashes due to too many open file handles.
webpack-bot commentedon Apr 9, 2021
For maintainers only: