Closed Mati365 closed 3 years ago
const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
new WebpackManifestPlugin({
fileName: './manifest.json',
publicPath: '/static/react/',
}),
Works for me : )
I had this issue just now, and it turned out to be because npm i webpack-manifest-plugin
had inexplicably installed version 2.2.0 (why?), which doesn't export the same way. npm i webpack-manifest-plugin@latest
installed 4.0.2 and that fixed it. Hope this is of use to anyone else ending up here.
webpack-manifest-plugin
I have the version 4.0.2, but still the same issue.
I have the version 4.0.2, but still the same issue.
having the same issues on 4.0.2 as well.
Honestly people, read the documentation: https://github.com/shellscape/webpack-manifest-plugin#usage
Or check the code: https://github.com/shellscape/webpack-manifest-plugin/blob/master/src/index.ts#L65
Major version updates to packages contain breaking changes. That's semver 101 https://semver.org/
causes the problem