Error: ENOSPC: System limit for number of file watchers reached

Hi there,

We’ve recently started receiving this error message:

17|yorktown-dev | Watchpack Error (watcher): Error: ENOSPC: System limit for number of file watchers reached, watch '/home/zope/instances/yorktown/frontend/core/packages/volto/node_modules/svg-loader'

Has anyone else encountered this error and if so could you please share what solution(s) worked for you?

From my internet sleuthing I found that there were 2 common solutions that most had used/suggested:

  1. Add a watchOptions.ignored to their webpack.config.js (1. source)
  2. Increase the number of watchers (1. source)

Currently we have 204800 watchers.

Any assistance around this would be greatly appreciated :smiley: and if you require any additional information I’ll do my best to provide it.

For any one that may have a similar problem, we decided to increase our watcher limit :slight_smile: