quirrel-dev / quirrel

The Task Queueing Solution for Serverless.
https://quirrel.dev
MIT License
892 stars 67 forks source link

Error: EMFILE: too many open files #48

Closed viperfx closed 3 years ago

viperfx commented 3 years ago

When I run the quirrel command to start the server, I get lots of errors similar to Error: EMFILE: too many open files

Error: EMFILE: too many open files, open 'widget/node_modules/wrap-ansi/node_modules/ansi-regex/index.js'
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: EMFILE: too many open files, open 'widget/node_modules/wrap-ansi/node_modules/strip-ansi/index.d.ts'
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: EMFILE: too many open files, open 'widget/node_modules/wrap-ansi/node_modules/strip-ansi/index.js'
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: EMFILE: too many open files, open 'widget/node_modules/yargs-parser/node_modules/camelcase/index.d.ts'
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: EMFILE: too many open files, open 'widget/node_modules/yargs-parser/node_modules/camelcase/index.js'
....

I am using WSL2 with redwood client libraries. I am running the command with yarn run quirrel

Skn0tt commented 3 years ago

Apparently we don‘t exclude enough files from watching. Will take a look at it this weekend.

Skn0tt commented 3 years ago

51 should fix this. @viperfx Could you try out 1.0.2-fix-48? (npm install quirrel@danger)

Skn0tt commented 3 years ago

Published in 1.0.3.