Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clientLogLevel 'none' is invalid 2.1.0-beta.11 #693

Closed
stevewillard opened this issue Nov 14, 2016 · 8 comments
Closed

clientLogLevel 'none' is invalid 2.1.0-beta.11 #693

stevewillard opened this issue Nov 14, 2016 · 8 comments

Comments

@stevewillard
Copy link

Version:
webpack-dev-server: 2.1.0-beta.11

In my webpack config I have:

  devServer : {
    clientLogLevel: 'none'
  },

With the latest webpack-dev-server I get this:

Invalid configuration object. webpack-dev-server has been initialised using a configuration object that does not match the API schema.
 - configuration.clientLogLevel should be one of these:
   "info" | "warning" | "error"
   Controls the log messages shown in the browser.

is 'none' a valid configuration?

@SpaceK33z
Copy link
Member

SpaceK33z commented Nov 14, 2016

Whoops, fixed. I'll wait a few days before releasing a new version to see if there are more issues with the new schema validation.

Thanks for your bug report!

@josh18
Copy link

josh18 commented Nov 15, 2016

I also was having this issue until I found what it was via trial and error. But this is the error message I was getting:

.../node_modules/webpack-dev-server/lib/Server.js:25
throw new OptionsValidationError(validationErrors);
^

Any idea what I am doing different?
node v7.1.0 npm v3.10.8

@stevewillard
Copy link
Author

You just have to downgrade WDS and wait until the next version is released.

@josh18
Copy link

josh18 commented Nov 15, 2016

I'm just trying to figure out why you got an actual error message but I just got throw new OptionsValidationError(validationErrors);? It looks like it failed on "throw"? Might have nothing to do with WDS though so I'll do some research and see what I can find.

@SpaceK33z
Copy link
Member

Fix released in v2.1.0-beta.12.

@josh18
Copy link

josh18 commented Nov 25, 2016

By the way the error doesn't get thrown properly in Node v7 for some reason (it might well be Nodes fault). It only shows the stack trace and not the message. It works fine on Node v6 or if you put this line at the bottom of the function.

@SpaceK33z
Copy link
Member

Yeah there are many issues with Node.js v7. A few minutes ago I put a warning on the README, because the Node.js v7 issues seem endless and are not the fault of webpack-dev-server most of the time.

@josh18
Copy link

josh18 commented Nov 25, 2016

Ah ok, good to know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants