DevTools: Failed to load source map — Could not load content for https://…/app.js.map: HTTP error: status code 404
DevTools could not download the .map file that a script or stylesheet points to, so you see minified code instead of your sources. Visitors are not affected.
DevTools failed to load source mapCould not load content forHTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILUREFailed to load source map Meaning
The last line of a bundle (//# sourceMappingURL=app.js.map) tells DevTools where the map is. The warning appears when the map was not deployed, is blocked or behind auth, or when a browser extension (chrome-extension://…) ships a bad reference. It is only a debugging warning; fix it by deploying the maps, or stop emitting the comment in production.
Common causes
- Source maps not uploaded to the server (excluded from deploy or
.gitignored) - Server or CDN blocks
.mapfiles or requires authentication - Wrong
publicPath/base so the map URL is wrong - Third-party library or extension referencing a map it does not ship
- Maps served with the wrong path after a CDN rewrite
⚡ Quick fix
- Deploy the
.mapfiles next to the bundles, or turn maps off for production builds - Ignore warnings from
chrome-extension://URLs — they are from extensions - In DevTools Settings turn off "Enable JavaScript source maps" if you do not need them
Detailed fix by platform
JavaScript
- Vite:
build: { sourcemap: true }(orfalse); webpack:devtool: 'source-map'orfalse; Next.js:productionBrowserSourceMaps: true
Nginx
- Make sure
.mapfiles are not denied: remove rules likelocation ~ \.map$ { return 404; }if you want maps available (or restrict them to your IP)
Chrome
- DevTools → Settings (F1) → Preferences → Sources → untick "Enable JavaScript source maps" to silence the warnings
How to diagnose
- URL — Does the .map URL open in a new tab?
- Origin — Own bundle or an extension/library?
- Build — Are maps generated and deployed?
🔧 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
Most viewed in Browser
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 15 Oct 2026