Webpack-dev-server: Deprecation warning when using Webpack 4

Created on 26 Feb 2018  路  10Comments  路  Source: webpack/webpack-dev-server

  • Operating System: Win 10
  • Node Version: 8.9.4
  • NPM Version: 5.6.0
  • webpack Version: 4.0.0
  • webpack-dev-server Version: 3.0.0

  • [ ] This is a bug

  • [x] This is a modification request

Expected Behavior

No warning when using webpack-dev-server.

Actual Behavior

A warning appears because plugin api is used by something (should be updated to tap).

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

Warnings made me investigate if this was caused by my own plugin.
Tools, namely aspnet-core-spa, report failures when they detect errors/warnings.

Most helpful comment

Thanks for filing this issue. I fixed the warnings in c32cfa8c01c89a6f35e971c3330d4fe5fb49df5a, however webpack-dev-middleware is not updated to the new API's yet.

See also https://github.com/webpack/webpack-dev-middleware/pull/264

All 10 comments

Thanks for filing this issue. I fixed the warnings in c32cfa8c01c89a6f35e971c3330d4fe5fb49df5a, however webpack-dev-middleware is not updated to the new API's yet.

See also https://github.com/webpack/webpack-dev-middleware/pull/264

It looks like v3.1.0 still has the deprecation warning even though webpack-dev-middleware is already updated. Can you please check?

Looks like it was updated in 2b40391bcfa848d5d8e61f5cbeaf350e01198c39 which was committed after the last release was already out. So we're just waiting for the next release.

Published [email protected] with the fix.

Updated to version 3.1.1 and still am having this warning for some reason. Maybe because I'm using WDS Node API... 馃

@osenvosem I cannot reproduce this. Are you sure no other plugin is the cause of this error?

@SpaceK33z Only two standard plugins: webpack.HotModuleReplacementPlugin and webpack.DefinePlugin.
Here is the code: https://github.com/osenvosem/typescript-full-stack-boilerplate

Confirming the deprecation warning no longer appears. Thanks @SpaceK33z!

@foxxyz then, I suppose the issue somewhere on my side. Will be investigating.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jack-Works picture Jack-Works  路  3Comments

daryn-k picture daryn-k  路  3Comments

nikirossi picture nikirossi  路  3Comments

mrdulin picture mrdulin  路  3Comments

subblue picture subblue  路  3Comments