Webpack.js.org: webpack Dev Server Invalid Options

Created on 29 Nov 2019  路  9Comments  路  Source: webpack/webpack.js.org

incorrect:

devServer: {
  clientLogLevel: 'debug'
}
webpack Dev Server Invalid Options

options.clientLogLevel should be {String} and equal to one of the allowed values

 [ 'trace', 'debug', 'info', 'warn', 'error', 'silent' ]

(https://webpack.js.org/configuration/dev-server/#devserver-clientloglevel)

npm ERR! code ELIFECYCLE
npm ERR! errno 1

correct:

devServer: {
  clientLogLevel: 'info'
}
Bug Configuration

All 9 comments

Reading the error, 'debug' option does exist in schema error description, but doesn't pass the validation right?

@hiroppy can you please have a look, i dont see why this is happening

@fengxinming this is working for me. Here is a minimal example for this https://github.com/rishabh3112/issues/tree/master/webpackdocs%233374

image

@rishabh3112 I see but I met this problem from create-react-app after ejecting webpack config, I feel like webpack-dev-server@latest has fixed this issues.

@fengxinming As you have now ejected the config, try updating the webpack-dev-server. It should solve the issue.

Closing for now

i got same issue after split webpack.config.js with command expo customize:web.. i try downgrade webpack-config. and solve
yarn add [email protected]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pksjce picture pksjce  路  34Comments

webpack-bot picture webpack-bot  路  28Comments

pastelsky picture pastelsky  路  23Comments

zzzgit picture zzzgit  路  31Comments

dmitriid picture dmitriid  路  20Comments