Webpack dev server runtime errors overlay

Context

Webpack has an overlay option to configure how errors are displayed. By default, runtime errors are displayed in an overlay as shown in the following image:

overlay-error

Problem

This may be counter-productive when it repeatedly appears as shown above.

Solution

Disable specific runtime errors. They already appear on the developer console.