Last updated 26 November 2026. By Paul Badarau.
Lena, a fictional developer, deploys a lamp shop at lunch. Visitors who opened the site that morning hit a chunk error when they open a product, because that page still asks for the old file.
- A bundler names each extra file with a hash. A page that is already open keeps the old names. Deleting those files on deploy makes the next load fail. A webpack build reports
ChunkLoadError: Loading chunk 12 failed.Chromium reportsFailed to fetch dynamically imported modulefor a native dynamic import. Other browsers use their own wording for the same missing file. - A reload requests the new HTML, which names the new files. Keep the previous hashed files available for a while after the deploy. Cache the HTML briefly, and cache the hashed files for a long time, so an old page can still fetch the names it holds.
- A page that reloads itself as soon as the load fails recovers the visitor and hides the count. Call
Sentry.captureExceptionwith that error before the reload. SetreleaseinSentry.initto the build you shipped, so the stored event names it.
The SDK can report a chunk that fails after the SDK has started. It cannot report a main file that never ran. A count that keeps rising after the old files are available again is a path the new build itself cannot load.
The product page for this is Monitoring.