-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
misleading error message: configuration.module.rules[].exclude #66
Comments
@taewdy Why? We support String, look on message:
|
'node_modules' and '/node_modules' are both string. |
This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days. |
need add test case to avoid problem in future |
I can suggest to add extra info, e.g.
will produce
will produce UPD: we need to use https://github.com/epoberezkin/ajv#api-addformat instead of addKeyword |
Bug report
What is the current behavior?
misleading error message: configuration.module.rules[].exclude
All other config property is removed here for clarity.
When I use string for
exclude
If I use array of string for
exclude
If the current behavior is a bug, please provide the steps to reproduce.
webpack-dev-server --config webpack.config.js
What is the expected behavior?
string
should be removed from allowed object in error message.Other relevant information:
webpack version: ^4.29.6
Node.js version: 8.11.1
Operating System: ubuntu 18.04
webpack-dev-server: ^3.2.1
The text was updated successfully, but these errors were encountered: