denoland/deno · error
Could not detect a supported framework in the current direct
Error message
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.
What it means
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.
Source
Thrown at cli/tools/desktop.rs:417
}
let entrypoint_path = entrypoint_temp.path().to_path_buf();
desktop_flags.source_file = entrypoint_path.display().to_string();
if desktop_flags.output.is_none()
&& let Some(dir_name) = cwd.file_name()
{
desktop_flags.output = Some(dir_name.to_string_lossy().into_owned());
}
// Add framework build output to includes. Skipped in HMR mode.
if !use_framework_hmr {
for inc in &detection.include_paths {
if !desktop_flags.include.contains(inc) {
desktop_flags.include.push(inc.clone());
}
}
}
Some(entrypoint_temp)
} else {
bail!(
"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."
);
}
} else {
None
};
let self_extracting = desktop_entrypoint_file.is_some();
// `desktop_entrypoint_file` (a NamedTempFile) keeps the file alive while
// `compile_binary` reads it. It is explicitly closed right after compilation
// (see below) rather than on drop: the long-running `run_desktop_hmr` wait
// exits on Ctrl-C without running destructors, so a drop-only guard would
// leak the entrypoint for the whole dev session.
// No explicit icon, but a framework was detected — try to use its
// favicon (e.g. `public/favicon.ico`, `app/icon.png`) as the app icon
// so the bundle gets the project's branding for free.
if desktop_flags.icon.is_none()View on GitHub (pinned to f7822238ca)
When it happens
Trigger: Thrown at cli/tools/desktop.rs:417 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of denoland/deno@f7822238ca (2026-08-20).
Data as JSON: /api/errors/42bab2796b0d4a76.
Report an issue: GitHub.