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

webpack-dev-server warning on npm start #3390

Closed
robcaldecott opened this issue Nov 2, 2017 · 2 comments
Closed

webpack-dev-server warning on npm start #3390

robcaldecott opened this issue Nov 2, 2017 · 2 comments

Comments

@robcaldecott
Copy link

This is not a bug but it might need someone knowledgeable in the CRA webpack config to take a look.

Since 1.0.15 running npm start will generate the following console message:

The `setup` option is deprecated and will be removed in v3. Please update your config to use `before`

This warning is coming from the webpack-dev-server module and is in danger of confusing users. The issue is caused by the use of the packages/react-scripts/config/webpackDevServer.config.js setup function (line 98.)

More info here:

https://webpack.js.org/configuration/dev-server/#devserver-setup

I do not know if simply moving the code from setup to before will be enough to address this.

@Timer
Copy link
Contributor

Timer commented Nov 2, 2017

Probably a result of #3342, thanks for the heads-up!

@gaearon
Copy link
Contributor

gaearon commented Nov 3, 2017

Why can't I reproduce this on master?

@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants