Error: too many open files

In case you’re using webpack you have to add fs to your config (as explained here ), like:

externals: {
    ...
    fs: 'commonjs2 fs',
    ...
  },
1 Like