{"record":{"id":"42bab2796b0d4a76","repo":"denoland/deno","slug":"could-not-detect-a-supported-framework-in-the-curr","errorCode":null,"errorMessage":"Could not detect a supported framework in the current directory.\\nSupported frameworks: Next.js, Astro, Fresh, Remix, React Router, SvelteKit, Nuxt, SolidStart, TanStack Start, Vite\\nProvide an explicit entrypoint instead.","messagePattern":"Could not detect a supported framework in the current directory\\.\\\\nSupported frameworks: Next\\.js, Astro, Fresh, Remix, React Router, SvelteKit, Nuxt, SolidStart, TanStack Start, Vite\\\\nProvide an explicit entrypoint instead\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/tools/desktop.rs","lineNumber":417,"sourceCode":"      }\n      let entrypoint_path = entrypoint_temp.path().to_path_buf();\n      desktop_flags.source_file = entrypoint_path.display().to_string();\n      if desktop_flags.output.is_none()\n        && let Some(dir_name) = cwd.file_name()\n      {\n        desktop_flags.output = Some(dir_name.to_string_lossy().into_owned());\n      }\n      // Add framework build output to includes. Skipped in HMR mode.\n      if !use_framework_hmr {\n        for inc in &detection.include_paths {\n          if !desktop_flags.include.contains(inc) {\n            desktop_flags.include.push(inc.clone());\n          }\n        }\n      }\n      Some(entrypoint_temp)\n    } else {\n      bail!(\n        \"Could not detect a supported framework in the current directory.\\nSupported frameworks: Next.js, Astro, Fresh, Remix, React Router, SvelteKit, Nuxt, SolidStart, TanStack Start, Vite\\nProvide an explicit entrypoint instead.\"\n      );\n    }\n  } else {\n    None\n  };\n\n  let self_extracting = desktop_entrypoint_file.is_some();\n  // `desktop_entrypoint_file` (a NamedTempFile) keeps the file alive while\n  // `compile_binary` reads it. It is explicitly closed right after compilation\n  // (see below) rather than on drop: the long-running `run_desktop_hmr` wait\n  // exits on Ctrl-C without running destructors, so a drop-only guard would\n  // leak the entrypoint for the whole dev session.\n\n  // No explicit icon, but a framework was detected — try to use its\n  // favicon (e.g. `public/favicon.ico`, `app/icon.png`) as the app icon\n  // so the bundle gets the project's branding for free.\n  if desktop_flags.icon.is_none()","sourceCodeStart":399,"sourceCodeEnd":435,"githubUrl":"https://github.com/denoland/deno/blob/f7822238cab635a3a19f99f493f675fa81a7f9d8/cli/tools/desktop.rs#L399-L435","documentation":"Error \"Could not detect a supported framework in the current directory.\\nSupported frameworks: Next.js, Astro, Fresh, Remix, React Router, SvelteKit, Nuxt, SolidStart, TanStack Start, Vite\\nProvide an explicit entrypoint instead.\" thrown in denoland/deno.","triggerScenarios":"Thrown at cli/tools/desktop.rs:417 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f7822238cab635a3a19f99f493f675fa81a7f9d8","analyzedAt":"2026-08-20T13:07:44.778Z","contentChangedAt":"2026-08-20T13:07:44.778Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}