title: "Watchpack Error (watcher): Error: EMFILE: too many open files" - NextJS
body: <p>I'm having an issue with watchpack throwing this error above in a next app when I try to <code>next dev</code>.
  The screen keeps rolling with the following pattern:</p>
  <pre><code>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'
  
  </code></pre>
  <p>Any ideia of what I can do to fix it? So far I have tried increasing the open files limit with <code>ulimit -n 65536</code> but with no success</p>