Anyone coming here in 2021 on webpack-dev-server v4+,
allowedHosts
and disableHostsCheck
were removed in favor of allowedHosts: 'all'
To get rid of the error, change your devServer to this:
devServer: { compress: true, allowedHosts: 'all'}
Anyone coming here in 2021 on webpack-dev-server v4+,
allowedHosts
and disableHostsCheck
were removed in favor of allowedHosts: 'all'
To get rid of the error, change your devServer to this:
devServer: { compress: true, allowedHosts: 'all'}