I'm having an issue with watchpack throwing this error above in a next app when I try to next dev.
The screen keeps rolling with the following pattern:
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/my_user/Projects/project/sub-project/src/pages'
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/my_user/Projects/project/sub-project/src'
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/my_user/Projects/project/sub-project'
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/my_user/Projects/project'
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/my_user/Projects'
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/my_user'
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home'
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/my_user'
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home'
Any ideia of what I can do to fix it? So far I have tried increasing the open files limit with ulimit -n 65536 but with no success
This error is because watchpack module.
Just add in .env:
WATCHPACK_POLLING = true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With