Error: EMFILE: too many open files, watch

Did You change this for Webpack 5?

Maybe like this?

    node: [
      "node_modules/webpack/bin/webpack.js",
      "--mode",
      "development",
      "--watch",
      "--watch-options-stdin",
      cd: Path.expand("../assets", __DIR__)
    ]
1 Like