shellscape / webpack-manifest-plugin

webpack plugin for generating asset manifests
MIT License
1.44k stars 185 forks source link

ERROR in Conflict: Multiple assets emit different content to the same filename manifest.json #251

Closed addamove closed 3 years ago

addamove commented 3 years ago

Hello! I tried to use this plugin with webpack 5 and webpacker 6 and if I use it I have this error. Commenting plugin and everything works. Do you have any ideas how can I try to debug this issue?

ERROR in Conflict: Multiple assets emit different content to the same filename manifest.json

shellscape commented 3 years ago

If you are sure this is a bug or documentation issue, please take the time to refile this issue using the issue template.

Hey there, thanks for opening an issue - Unfortunately you missed (or may have disregarded) the message about issue templates being required. Because our issue template was removed, we assume that this is a support request, and that's not something we offer here. Also, if you refile, please don't ignore Issue sections. They're in the template because they're useful to the maintainers of this project.

dac09 commented 3 years ago

Hello, I know this is closed, but I wanted to comment here incase someone else comes across this.

I've experienced this issue on webpack 5, using RedwoodJS (which uses this under the hood). The problem was that my public folder already had a manifest.json - so when this plugin tries to produce another manifest, it caused the build to fail.

I configured the output path like this

        new WebpackManifestPlugin({
          fileName: 'rw-build-manifest.json', // different filename
        }),

and now the error is gone :)