mattlewis92 / webpack-retry-chunk-load-plugin

A webpack plugin to retry loading of chunks that failed to load
MIT License
238 stars 45 forks source link

CSS loading error reports as JS error due to conflicting chunkId #42

Open dr3 opened 2 years ago

dr3 commented 2 years ago

Raising this with the aim of coming back to it.

In our, and Im sure others, webpack setup JS and CSS bundles are generated with the same chunkid. This means that when this plugin looks up the chunk using getChunkScriptFilename it returns the JS one, rather than the CSS one that caused the issue.

At a quick glance, theres no easy fix, however I will continue to investigate

moecasts commented 2 years ago

i have got this error too, do you find any solution?