Closed garak closed 3 years ago
Can you please run the command with node --trace-deprecation
as suggested so that we can see where it comes from ?
Also, are you applying custom webpack plugins in your webpack config ? If yes, are these plugins updated to support webpack 5 properly ?
Unfortunately, I can't recall where it happened. I tried with all my recent projects and can't find deprecation again. By the way, the only plugin I use everywhere is copy-webpack-plugin.
If you think there's no value, feel free to close.
Feel free to re-open if you spot it again - this type of things is definitely very possible :).
Cheers!
Hi there,
just to add my contribution, I've got the same error while upgrading from 0.24 to 1.0.0.
In my case, it looks like the imagemin-webpack-plugin (^2.4.2) is responsible for the error. Indeed, when I remove the lines below the error disappeared :
let ImageminPlugin = require('imagemin-webpack-plugin').default;
Encore.addPlugin(new ImageminPlugin({
test: /\.(jpe?g|png|gif|svg)$/i,
disable: !Encore.isProduction()
})
There is an open issue for this : https://github.com/Klathmon/imagemin-webpack-plugin/issues/116
Regards
I just upgraded from 0.33 to 1.0, and while compiling I'm getting this: