Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #3390
Closed
Open
Issue created Nov 02, 2017 by Administrator@rootContributor

webpack-dev-server warning on npm start

Created by: robcaldecott

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.

Assignee
Assign to
Time tracking