extract-css-chunks-webpack-plugin icon indicating copy to clipboard operation
extract-css-chunks-webpack-plugin copied to clipboard

Webpack 5, Multiple assets emit different content to the same filename

Open primozs opened this issue 5 years ago • 1 comments

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

primozs avatar Nov 04 '20 11:11 primozs

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"

vdineva avatar Dec 01 '20 19:12 vdineva