-
-
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] error when using --watch
flag
#1918
Comments
@webpack/cli-team high priority |
I get the same error, but I think it's worth mentioning that the watch mode does actually work. Yes, it throws that warning at the start, but it still bundles and still watches for changes correctly. |
Indeed, webpack v5 does not watch anymore if I remove I use this config: {
mode: "development",
watch: true,
devtool: "inline-cheap-source-map",
watchOptions: {
ignored: ["node_modules/**"],
},
entry: {
main: ["core-js/stable", "./src/js/index.js"],
theme: "./src/scss/th.scss",
},
} Solution: With my config above the only way to go is adding |
I will fix it 👍 |
We have two problems here:
|
@evilebottnawi fixed with #1931 ? |
@snitin315 No, will be fixed in the near future, the next PR |
Some problems on webpack side with new API, we are working on it, so I will do release with other fixes, but it will be fixed tomorrow with patch release |
Same problem for me when trying to upgrade to |
@gimmi why need to spam it? I've always tried to figure it out, but I can't, can you explain it to me? |
Just note, this is unnecessary using |
I hit this with the latest versions of everything and I don't have |
@jakebailey Can you provide link on example of problem, removing |
I haven't yet pushed the changes to my project to grab 4.1.0 quite yet (holding back dep updates for a release, but will likely do it soon), but the config that it'd be is here: https://github.com/microsoft/pyright/blob/master/packages/vscode-pyright/webpack.config.js Where the task just runs |
@jakebailey Very strange, should be no problems |
I have this with this project https://github.com/styled-components/vscode-styled-components/blob/master/package.json and we don’t have |
I just created https://gist.github.com/tkurki/5627039d52ca0248648ed383294f57f6 and with that I get the DeprecationWarning running |
I am running webpack 5.1.3 and webpack-cli 4.1.0 with
Still get the same [DEP_WEBPACK_WATCH_WITHOUT_CALLBACK] error |
Had a quick look and removing https://github.com/webpack/webpack/blob/master/lib/webpack.js#L140 Looks like we would need to refactor how the webpack-cli handles complier ( have some wip already but would require webpack/webpack#11784 ) |
@piecyk Can you clarify? |
@evilebottnawi on which part ? webpack-cli creates compiler via https://github.com/webpack/webpack-cli/blob/master/packages/webpack-cli/lib/webpack-cli.js#L219 Using Looks like there is no option to opt out from warning just to pass a callback when calling |
We should fix it Also we can remove |
|
I did update to
|
I think we're still waiting on a new release ( > 4.1.0 ) for this. If I test against the master branch it seems to work fine. (You can use the master branch with EDIT: |
Release will be today |
Fixed in |
I still have this problem! "webpack": "^5.10.3", node: v14.15.0 |
@xccjk I did a fresh checkout of your https://github.com/xccjk/webpack-demo1 and didn't see this problem. I did see a "DEP_WEBPACK_COMPILATION_ASSETS" but this comes from
|
Thank you very much for your reply, but after removing
|
|
You need update |
i'm not actually using pure webpack but webpack encore which uses webpack-cli 4, i see that 4.5 is the latest version but i guess i'll have to wait for webpack encore to upgrade it |
Running latest webpack 5.22 and webpack-cli 4.5 - No errors ! |
Once I had updated webpack-cli it was all good :) |
"webpack": "^5.61.0" getting same warning when I set the watch property value to
if I set to |
Describe the bug
PR with the configuration
javascript-obfuscator/javascript-obfuscator#776
After upgrade from webpack@4 to webpack@5 and webpack-cli@3 to [email protected] I got the following error:
This error happens only when using
--watch
flag:Full error trace:
Expected behavior
No error.
The text was updated successfully, but these errors were encountered: