-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
webpack 5 deprecation warning #188
Comments
same issue here with peer dep |
same here |
@danez friendly ping |
looks like they fixed it here: webpack/webpack-cli#1918 |
they did fix it for the cli but seems like grunt-webpack might need to still get that. not sure what to replace watch:true with. If I remove it as suggested the watch is not working. |
You can remove |
Error is some misleading, it should be |
ya but if I do that it doesn't work with the watching. |
How you run command? |
I have
and i get the deprecation warning. But it does watch when I run the task and updates when I change a file. |
I run |
The whole task:
|
Weird, based on source core https://github.com/webpack-contrib/grunt-webpack/blob/master/tasks/webpack.js#L106, you can safely remove |
|
yes. how do I use an option with grunt-webpack? If I do |
oh, I see, yes, we need to fix it, should be easy, just always set |
@alexander-akait Apologies if this is a silly question, but I assume from your comment above that this is something that needs to be handled in this package? (i.e. always setting a |
@epx-nathan Do you still have warning? Can you provide simple example? |
@alexander-akait Looks like @danez has created a PR with a fix! I can't provide a full simple code example but the packages I'm using are:
My grunt file just imports my webpack config and then refers to it in this way: And my webpack file has watch defined as true: |
🎉 This issue has been resolved in version 4.0.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Just responding to let you all know that this did fix my issue. Thanks so much for the quick turnaround, really appreciated! |
Webpack/Grunt Configuration (webpack.config.js, webpack part of Gruntfile.js)
Gruntfile.js:
webpack.config.js
Expected Behavior
No deprecation warnings :)
Current Behavior
Context
Trying to update webpack from 4 to 5.
Your Environment
btw this command
npm ls grunt webpack grunt-webpack
gives me errorThe text was updated successfully, but these errors were encountered: