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

'setup' deprecation warning issued without 'setup' in use #1119

Closed
2 tasks
bazineta opened this issue Sep 27, 2017 · 1 comment
Closed
2 tasks

'setup' deprecation warning issued without 'setup' in use #1119

bazineta opened this issue Sep 27, 2017 · 1 comment

Comments

@bazineta
Copy link

  • Operating System: Any
  • Node Version: 6.11.3
  • NPM Version: 3.10.10
  • webpack Version: 3.6.0
  • webpack-dev-server Version: 2.9.0
  • This is a bug
  • This is a feature request
  • [x ] This is a modification request

Code

Expected Behavior

The new 'setup' deprecation message should be issued only if 'setup' was actually used in the configuration.

Actual Behavior

Console message issued in all cases:

Using "setup" is deprecated and will be removed in the next major version. Please use the "before" and "after" hooks instead.
If "setup" was working fine for you until now, simply replace it with "before"

For Bugs; How can we reproduce the behavior?

Call webpack dev server, using a configuration lacking the 'setup' option.

For Features; What is the motivation and/or use-case for the feature?

Just spent a bit of time trying to find a non-existent 'setup' in our configuration; would like others not to have to do the same.

@shellscape
Copy link
Contributor

Duplicate of #1118

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