Nuxt: [nuxt] error caught during app initialization TypeError: Failed to fetch dynamically imported module / Loading chunk failed
A browser tab running the old build requests chunk files that were replaced by a new deployment.
[nuxt] error caught during app initialization TypeError: Failed to fetch dynamically imported moduleNuxt Failed to fetch dynamically imported module after deployChunkLoadError: Loading chunk failed NuxtLoading chunk failed. (missing: https://example.com/_nuxt/xyz.js)[nuxt] Error loading chunk 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
experimental: { emitRouteChunkError: "automatic" }- Keep previous build assets available
- Cache HTML shortly and assets long (hashed)
Detailed fix by platform
Nuxt
export default defineNuxtConfig({ experimental: { emitRouteChunkError: "automatic" } });
How to diagnose
- Deploy — Chunks removed?
- Cache — HTML stale?
- Config — Auto reload?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- [vuex] unknown mutation type / unknown action type Vuex: [vuex] unknown mutation type: SET_USER / [vuex] unknown action type: fetchUser
- 404 on page refresh (history mode) Browser: Cannot GET /users/42 — refreshing a Vue Router history-mode page returns 404
- ChunkLoadError ChunkLoadError: Loading chunk 123 failed.
Most viewed in Vue
- Property was accessed during render but is not defined Vue: [Vue warn]: Property "x" was accessed during render but is not defined on instance
- Failed to resolve component Vue: [Vue warn]: Failed to resolve component: x
- Avoid mutating a prop directly Vue: [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 5 Nov 2026