Skip to content

Errors / JavaScript errors

TypeError: Failed to fetch dynamically imported module

The site was updated while the visitor had it open, and the part they clicked on no longer exists.

The visitor clicks and nothing happens, or sees a blank page, until they reload.

Why it happens

  • A new deploy replaced the build's hashed chunk files; a visitor on the old version navigates, and the browser asks for a chunk that is gone.
  • A CDN or cache serving HTML from one deploy and assets from another.
  • Rarely, a network error while loading that chunk.

How to fix it

  1. Keep the previous deploy's assets available for a while (most hosts can), so old tabs still find their chunks.
  2. Catch the failure and reload once: Vite fires vite:preloadError on window for exactly this.
  3. Make sure HTML is not cached longer than the assets it points at.

Whose problem it is

Usually the site's own code or settings.

Does your site have it?

Free, no account. We open your page and four more in a clean Chrome and list every error like this one, with the page and the click that caused it. How the free page check works.

Check only sites you run or have permission to check.

Often seen with