Webpack-dev-server: v2.6.0 Can't resolve 'loglevel' in webpack-dev-server/client

Created on 22 Jul 2017  路  4Comments  路  Source: webpack/webpack-dev-server

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Just installed the latest v2.6.0 release and am now getting the error Can't resolve 'loglevel' in webpack-dev-server/client

If the current behavior is a bug, please provide the steps to reproduce.

The dev server config bit:

{
      port:               3000,
      host:               0.0.0.0,
      quiet:              false,
      hot:                true,
      contentBase:       path.resolve(__dirname, 'src'),
      historyApiFallback: true,
      disableHostCheck:   true,
      stats:              {
        hash:    false,
        colors:  true,
        cached:  false,
        version: false
      }
    }

Please mention your webpack and Operating System version.
webpack v3.3.0, OSX 10.13 (High Sierra beta 3)

Most helpful comment

Sorry everyone, fixed in [email protected]

All 4 comments

Duplicated of #984

A workaround to solve it is installing loglevel.

npm i -D loglevel

This dependencie should be in package.json dependencies, but in 2.6.0, it's in devDependencies.
We can downgrade version or use npm i -D loglevel to install the dependencie.

Sorry everyone, fixed in [email protected]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hnqlvs picture hnqlvs  路  3Comments

gimmi picture gimmi  路  3Comments

eyakcn picture eyakcn  路  3Comments

wojtekmaj picture wojtekmaj  路  3Comments

da2018 picture da2018  路  3Comments