# Nuxt: [nuxt] error caught during app initialization TypeError: Failed to fetch dynamically imported module / Loading chunk failed

**Code:** `Nuxt: Failed to fetch dynamically imported module (after deploy)` · **Category:** Vue · **Seen on:** Vue

A browser tab running the old build requests chunk files that were replaced by a new deployment.

## Meaning

Nuxt can auto-reload on chunk errors (`experimental.emitRouteChunkError: "automatic"` in Nuxt 3, default in newer versions). Keep old assets on the CDN for some time, set cache headers (`immutable` for hashed assets, `no-cache` for HTML), and use zero-downtime deploys.

## Common causes

- Hashed chunks replaced by a deploy
- CDN/HTML cached while chunks changed
- Server rolling deploy serving mixed versions
- Offline/network blocks
- Wrong `app.baseURL`/`cdnURL`

## Quick fix

1. `experimental: { emitRouteChunkError: "automatic" }`
2. Keep previous build assets available
3. Cache HTML shortly and assets long (hashed)

## Detailed fix by platform

### Nuxt

1. `export default defineNuxtConfig({ experimental: { emitRouteChunkError: "automatic" } });`

## How to diagnose

1. **Deploy** — Chunks removed?
2. **Cache** — HTML stale?
3. **Config** — Auto reload?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/vue/nuxt-chunk-load-error-after-deploy)
