Skip to content
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, Multiple assets emit different content to the same filename #301

Open
primozs opened this issue Nov 4, 2020 · 1 comment
Open

Comments

@primozs
Copy link

primozs commented Nov 4, 2020

extract-css-chunks-webpack-plugin: 4.8.0
"webpack": "^5.4.0",
"webpack-dev-middleware": "^4.0.0",

I am not sure if this is the right place for this issue.

On initial build it works. If I modify some random css file, I get this error after rebuild:
ERROR in Conflict: Multiple assets emit different content to the same filename

<e> [webpack-dev-middleware] Child "client": assets by status 42.9 MiB [cached] 238 assets
<e> Entrypoint main = main.css main.js main.292ea9678ed0edbbfec7.hot-update.js 1 auxiliary asset
<e> cached modules 14.6 MiB [cached] 3383 modules
<e> runtime modules 40.6 KiB 18 modules
<e> modules by path ./ 269 KiB (unknown) 219 bytes (javascript)
<e>   css modules 269 KiB 176 modules
<e>   javascript modules 219 bytes
<e>     ./src/packages/cuc-flights/components/flights-header/FlightsTotals.scss 103 bytes [built]
<e> 
<e> ERROR in Conflict: Multiple assets emit different content to the same filename src_packages_cuc-flights_components_flights-header_FlightsHeader_tsx-src_packages_cuc-flights-aaca9d.css
<e> 
<e> client (webpack 5.4.0) compiled with 1 error in 3496 ms

if I remove the whole route then I also got:

[webpack-dev-middleware] HookWebpackError: Cannot read property 'getModuleIndex2' of undefined

if I edit some js then build succeeds again

@vdineva
Copy link

vdineva commented Dec 1, 2020

I get the same error with
"extract-css-chunks-webpack-plugin": "^4.8.0"
"webpack": "^5.6.0"

Initial build works fine but as soon as I update a css file I get "ERROR in Conflict: Multiple assets emit different content to the same filename body.52b4492d4b9057f96547.css"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants