{"record":{"id":"03b74daa2350f743","repo":"sveltejs/kit","slug":"asset-does-not-exist-file","errorCode":null,"errorMessage":"Asset does not exist: ${file}","messagePattern":"Asset does not exist: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/kit/src/runtime/app/server/index.js","lineNumber":74,"sourceCode":"\tconst file = decodeURIComponent(\n\t\t__SVELTEKIT_DEV__ && asset.startsWith(assets + '/@fs')\n\t\t\t? asset.slice(assets.length)\n\t\t\t: asset.slice(assets.length + 1)\n\t);\n\n\tif (file in manifest.server_assets) {\n\t\tconst length = manifest.server_assets[file];\n\t\tconst type = manifest.mime_types[file.slice(file.lastIndexOf('.'))];\n\n\t\treturn new Response(read_implementation(file), {\n\t\t\theaders: {\n\t\t\t\t'Content-Length': '' + length,\n\t\t\t\t'Content-Type': type\n\t\t\t}\n\t\t});\n\t}\n\n\tthrow new Error(`Asset does not exist: ${file}`);\n}\n\nexport { getRequestEvent } from '@sveltejs/kit/internal/server';\n\nexport { query, prerender, command, form, requested } from './remote/index.js';\n","sourceCodeStart":56,"sourceCodeEnd":80,"githubUrl":"https://github.com/sveltejs/kit/blob/03f1687fe612ce3d2d9131139b5b188d9cf90c64/packages/kit/src/runtime/app/server/index.js#L56-L80","documentation":"Runtime guard inside read() from $app/server: after stripping the assets prefix and decoding, the requested file key is not present in the generated manifest's server_assets map, meaning the asset was never recorded as a server-readable asset during build. Typically happens when the imported path doesn't match a built asset (wrong import, stale build, or asset excluded from the manifest).","triggerScenarios":"Thrown at packages/kit/src/runtime/app/server/index.js:74 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Import the asset by its module path and pass the resulting URL to read(), rather than hand-writing a path","Rebuild the app so the manifest's server_assets entries are regenerated","Check for typos or hash mismatches in the asset path"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"03f1687fe612ce3d2d9131139b5b188d9cf90c64","analyzedAt":"2026-09-02T02:01:50.504Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}