New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vite build is opening too many files #4438
Comments
The issue is kind of old, but in case anybody else still has the problem: I encountered it too and was able to solve it with a fix in rollup: #rollup 4170, rollup/rollup#4200 Make sure you have rollup >= 2.53.0 in your dependencies and try again. |
We're experiencing this issue when pre-bundling, but only on Windows. So far the only solution we have to this problem is to install WSL on the affected machines and run a linux version of node (that solves it). |
Thanks! Let's close this then. |
The suggested fix does not work for our problem. But I'll open a new issue with a more specific error description at some point. |
thanks so much, this fixed my problem instantly 😄 |
Describe the bug
I'm trying to build an application, but developers keep running into "too many open files" issues.
I know too many open files issues can be worked around by raising ulimit etc, but there is an upper limit.
However, I doubt there's a reason for
vite build
too keep that many files open at the same time.Can this be changed, so files are not kept open for so long/only a reasonable number of files is kept open?
Reproduction
Build a project with a large number of dependencies.
System Info
Used Package Manager
npm
Logs
The text was updated successfully, but these errors were encountered: