Skip to content

[DX] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option. #13009

Closed

Description

@knoobie

Describe your motivation

After updating my local env to match the requirement for node 16.14 and npm 8.3 I get the following warning/information on start up:

[v-server-output] c.v.b.devserver.DevServerOutputTracker   : (node:11254) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.

Describe the solution you'd like

Flow doesn't use deprecated functions. :)

Additional context

Related to:

onAfterSetupMiddleware: function (devServer) {
devServer.app.get(`/assetsByChunkName`, function (req, res) {
res.json(stats.assetsByChunkName);
});
devServer.app.get(`/stop`, function (req, res) {
// eslint-disable-next-line no-console
console.log("Stopped 'webpack-dev-server'");
process.exit(0);
});
}
},
module: {
rules: [

Env:

  • Vaadin 23.0.0-beta.2
  • Node v16.14
  • Npm 8.3.1

Activity

  1. added a commit that references this issue on Feb 21, 2022
    0d509aa
  2. added a commit that references this issue on Feb 22, 2022
    80e9cf7
  3. added a commit that references this issue on Feb 22, 2022
    e2b2fdf
  4. added a commit that references this issue on Feb 22, 2022
    866d7b9
  5. vaadin-bot commented on Feb 23, 2022

    @vaadin-bot
    Collaborator

    This ticket/PR has been released with platform 23.0.0.beta4 and is also targeting the upcoming stable 23.0.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions