My build script is failing after upgrading webpack with the following error:
TypeError: webpackManifestPlugin is not a constructor
looking at my config file which is the source of this error, I could not figure out what is wrong - I do declare it before calling it:
const { webpackManifestPlugin } = require('webpack-manifest-plugin');
.....
new webpackManifestPlugin({...})
What can be wrong?
Looks like you imported the wrong named export from the package. The right one is WebpackManifestPlugin
not webpackManifestPlugin
const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With