-
-
Notifications
You must be signed in to change notification settings - Fork 601
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
DEP_WEBPACK_WATCH_WITHOUT_CALLBACK when watch is true #2089
Comments
Please create minimum reproducible test repo, should be fixed in 4.2.0 |
@evilebottnawi you can clone this one https://github.com/yossi-nagar/webpack5-test |
Just remove |
i removef |
Sorry my bad. The |
@yossi-nagar no deprecations, |
When trying to invoke the webpack-dev-server with watch option i get this warning:
10% building 0/10 entries 0/9 dependencies 0/0 modules(node:42260) [DEP_WEBPACK_WATCH_WITHOUT_CALLBACK] DeprecationWarning: A 'callback' argument need to be provided to the 'webpack(options, callback)' function when the 'watch' opt ion is set. There is no way to handle the 'watch' option without a callback.
I am using the command
webpack serve --mode development --progress -m -c ./webpack.common.js -c webpack.dev.js
Not only i receive this warning but the browser is also not reloaded when i make a change although I see that webpack recompiles my code.
dependencies in package.json:
webpack config:
What is the current behavior?
Expected behavior
Expected not to see this warning after closing issue #1918
Please paste the results of
webpack-cli info
here, and mention other relevant informationSystem:
OS: Windows 10 10.0.18363
CPU: (8) x64 Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
Memory: 4.24 GB / 15.96 GB
Binaries:
Node: 12.18.3 - C:\Program Files\nodejs\node.EXE
npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 86.0.4240.183
Edge: Spartan (44.18362.449.0)
Internet Explorer: 11.0.18362.1
Packages:
clean-webpack-plugin: ^3.0.0 => 3.0.0
css-minimizer-webpack-plugin: ^1.1.5 => 1.1.5
html-minimizer-webpack-plugin: ^1.0.1 => 1.0.1
html-webpack-plugin: ^5.0.0-alpha.13 => 5.0.0-alpha.13
moment-locales-webpack-plugin: ^1.2.0 => 1.2.0
resource-hints-webpack-plugin: 0.0.2 => 0.0.2
terser-webpack-plugin: ^5.0.3 => 5.0.3
webpack: ^5.3.2 => 5.4.0
webpack-bundle-analyzer: ^3.9.0 => 3.9.0
webpack-cli: ^4.2.0 => 4.2.0
webpack-dev-middleware: ^4.0.0 => 4.0.0
webpack-dev-server: ^3.11.0 => 3.11.0
Additional context
Please see #1918
The text was updated successfully, but these errors were encountered: