See https://webpack.js.org/configuration/watch/#not-enough-watchers
This kind of solve the problem, even if I agree with @luaz : it would be better to just warn the user and cancel the watch task, but I have found nothing in the doc of webpack about how to cancel a build.
I would understand that you would not merge this: it forces users to re-start webpack after installing or updating a package, but it prevents from a silent error.
See https://webpack.js.org/configuration/watch/#not-enough-watchers This kind of solve the problem, even if I agree with @luaz : it would be better to just warn the user and cancel the watch task, but I have found nothing in the doc of webpack about how to cancel a build.
I would understand that you would not merge this: it forces users to re-start webpack after installing or updating a package, but it prevents from a silent error.