{"record":{"id":"7c9b89f0a63b856c","repo":"denoland/deno","slug":"sveltekit-detected-but-no-adapter-that-deno-desk","errorCode":null,"errorMessage":"SvelteKit detected, but no adapter that `deno desktop` can bundle is configured.\n{auto_hint}Configure a supported adapter in your svelte.config:\n  - `@sveltejs/adapter-node` (runs under Deno via Node.js compatibility)\n  - `@deno/svelte-adapter` (for Deno Deploy)","messagePattern":"SvelteKit detected, but no adapter that `deno desktop` can bundle is configured\\.\n(.+?)Configure a supported adapter in your svelte\\.config:\n  - `@sveltejs/adapter-node` \\(runs under Deno via Node\\.js compatibility\\)\n  - `@deno/svelte-adapter` \\(for Deno Deploy\\)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/tools/framework.rs","lineNumber":615,"sourceCode":"      entrypoint_code:\n        \"// @ts-nocheck\\nimport \\\"./.output/server/index.mjs\\\";\\n\".into(),\n      include_paths: vec![\".output\".into()],\n      build_command: Some(deno_task_build()),\n      hmr_command: Some(deno_task_dev()),\n    });\n  }\n  // SvelteKit is present but the configured adapter isn't one we can locate a\n  // bundleable server output for (e.g. `adapter-auto`, `adapter-vercel`,\n  // `adapter-cloudflare`). `adapter-auto` is the `npx sv create` default and\n  // produces *no* local server output unless a known cloud platform is\n  // detected at build time, so point the user at a concrete adapter.\n  let auto_hint = if config_text.contains(\"adapter-auto\") {\n    \"`@sveltejs/adapter-auto` produces no local server output, so there is \\\n     nothing to bundle. \"\n  } else {\n    \"\"\n  };\n  bail!(\n    \"SvelteKit detected, but no adapter that `deno desktop` can bundle is \\\n     configured.\\n{auto_hint}Configure a supported adapter in your \\\n     svelte.config:\\n  - `@sveltejs/adapter-node` (runs under Deno via \\\n     Node.js compatibility)\\n  - `@deno/svelte-adapter` (for Deno Deploy)\"\n  );\n}\n\n/// Existing asset directories under a `svelte-adapter-deno` `build/` output\n/// that need to be embedded so the adapter's static file server can find them.\nfn sveltekit_build_includes(dir: &Path) -> Vec<String> {\n  [\"client\", \"static\", \"prerendered\"]\n    .iter()\n    .map(|sub| format!(\"build/{sub}\"))\n    .filter(|rel| dir.join(rel).is_dir())\n    .collect()\n}\n\n/// Nuxt, SolidStart, TanStack Start all use Nitro with the `deno_server`","sourceCodeStart":597,"sourceCodeEnd":633,"githubUrl":"https://github.com/denoland/deno/blob/9ad36f7a2cce60488e6ec52283efb32efddaf93a/cli/tools/framework.rs#L597-L633","documentation":"`deno desktop` found SvelteKit in the project but the adapter configured in svelte.config.js is not one it can bundle a local server from. adapter-auto (the `npx sv create` default) emits no local server output unless a cloud platform is detected, and adapter-vercel/adapter-cloudflare target cloud runtimes, so there is no server bundle for Deno to package.","triggerScenarios":"Running `deno desktop` in a SvelteKit project whose svelte.config.js imports `@sveltejs/adapter-auto`, `adapter-vercel`, `adapter-cloudflare`, or an unrecognized adapter; the config text is inspected and no supported adapter is found.","commonSituations":"Freshly scaffolded SvelteKit apps (sv create defaults to adapter-auto); teams that deploy to Vercel/Cloudflare trying to produce a local desktop bundle from the same config.","solutions":["Install and configure `@sveltejs/adapter-node` (npm i -D @sveltejs/adapter-node) so the build emits a runnable Node-compatible server that Deno can bundle","Alternatively use `@deno/svelte-adapter` if you target Deno Deploy","Re-run the SvelteKit build (`npm run build`) and then `deno desktop`"],"exampleFix":"// before — svelte.config.js\nimport adapter from '@sveltejs/adapter-auto';\nexport default { kit: { adapter: adapter() } };\n\n// after\nimport adapter from '@sveltejs/adapter-node';\nexport default { kit: { adapter: adapter() } };","handlingStrategy":"validation","validationCode":"# fail fast in setup scripts when the adapter is not bundlable:\ngrep -qE \"adapter-(node|deno)\" svelte.config.js \\\n  || { echo 'configure @sveltejs/adapter-node or @deno/svelte-adapter first'; exit 1; }","typeGuard":null,"tryCatchPattern":"Script around `deno desktop`: on the 'no adapter that `deno desktop` can bundle' message, print install instructions (npm i -D @sveltejs/adapter-node) and abort setup cleanly.","preventionTips":["Switch SvelteKit projects to adapter-node before adopting `deno desktop`","Keep cloud adapters only in deploy-specific config branches","Re-run `npm run build` after adapter changes to confirm server output is emitted"],"tags":["sveltekit","desktop","adapter","config","framework"],"backgroundTag":"unsupported-build-adapter","analyzedSha":"9ad36f7a2cce60488e6ec52283efb32efddaf93a","analyzedAt":"2026-08-20T13:07:44.778Z","contentChangedAt":"2026-08-20T13:07:44.778Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}