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] error when using webpack serve with --watch flag #2370
Comments
You should not use |
That is indeed misleading since
Could you please explain why it doesn't make sense to use serve with |
|
Maybe be we can add a warning here -
|
It just has no effect.
Yes, warning will be great, and let's hide |
I will send a PR |
Thanks for your help and your immediate PR! 👍 |
Describe the bug
When running
webpack serve
with--watch
the deprecation warningDEP_WEBPACK_WATCH_WITHOUT_CALLBACK
shows up. Initially I thought it's just the same as #1918 but it's a different code path.What is the current behavior?
When running node with
--trace-deprecation
this is the full deprecation stack:To Reproduce
Steps to reproduce the behavior:
npm install && npm start
Expected behavior
No deprecation warning
Please paste the results of
webpack-cli info
here, and mention other relevant informationAdditional context
I think the root cause is in
webpack-cli/packages/serve/src/index.ts
Line 77 in 85648db
The text was updated successfully, but these errors were encountered: