Skip to content

devServer hotOnly confusing error message #703

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

Closed
asterikx opened this issue Nov 21, 2016 · 4 comments
Closed

devServer hotOnly confusing error message #703

asterikx opened this issue Nov 21, 2016 · 4 comments

Comments

@asterikx
Copy link

asterikx commented Nov 21, 2016

Having configured webpack/hot/dev-server as an entry point as well as set hot to true (inside the devServer configuration object) leads to the error message:

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.entry should be one of these:
   object { <key>: string | [string] } | string | [string]
   The entry point(s) of the compilation.

The same accounts for webpack/hot/only-dev-server and hotOnly flag.

This error message seems inappropriate/diffcult to interprete.

@SpaceK33z
Copy link
Member

Are you using the CLI or Node.js API?

@asterikx
Copy link
Author

CLI. Sorry, I should have mentioned.

@SpaceK33z
Copy link
Member

In that case you should not add the entry point manually. I couldn't reproduce your issue. The error is confusing, but previously the server would start with a not correctly working config. With #615 we'll be working on better validation for this.

@SpaceK33z
Copy link
Member

I'm assuming this worked for you since you reacted with a thumbs up, feel free to re-open if there is still an issue.

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

2 participants