denoland/deno · error
Could not detect a supported framework in '{}'.\nSupported f
Error message
Could not detect a supported framework in '{}'.\nSupported frameworks: Next.js, Astro, Fresh, Remix, React Router, SvelteKit, Nuxt, SolidStart, TanStack Start, Vite\nProvide an explicit entrypoint instead of a directory. What it means
Error "Could not detect a supported framework in '{}'.\nSupported frameworks: Next.js, Astro, Fresh, Remix, React Router, SvelteKit, Nuxt, SolidStart, TanStack Start, Vite\nProvide an explicit entrypoint instead of a directory." thrown in denoland/deno.
Source
Thrown at cli/tools/compile.rs:142
std::fs::write(&entrypoint_path, detection.entrypoint_code)?;
compile_flags.source_file = entrypoint_path.display().to_string();
if compile_flags.output.is_none()
&& let Some(dir_name) = dir.file_name()
{
compile_flags.output = Some(dir_name.to_string_lossy().into_owned());
}
// Add framework build output to includes, resolved relative to the
// detected app directory so `deno compile ./myapp` picks up
// `./myapp/.next` rather than `./.next`.
for inc in detection.include_paths {
let resolved = dir.join(&inc).display().to_string();
if !compile_flags.include.contains(&resolved) {
compile_flags.include.push(resolved);
}
}
Some(entrypoint_path)
} else {
bail!(
"Could not detect a supported framework in '{}'.\n\
Supported frameworks: Next.js, Astro, Fresh, Remix, React Router, SvelteKit, Nuxt, SolidStart, TanStack Start, Vite\n\
Provide an explicit entrypoint instead of a directory.",
dir.display()
);
}
} else {
None
};
// Keep flags.subcommand in sync so resolve_main_module sees the
// rewritten source_file instead of the original directory path.
flags.subcommand = DenoSubcommand::Compile(compile_flags.clone());
// Clean up temp entrypoints on exit (framework-detected and/or bundled).
struct CleanupGuard(Vec<PathBuf>);
impl Drop for CleanupGuard {
fn drop(&mut self) {View on GitHub (pinned to f7822238ca)
When it happens
Trigger: Thrown at cli/tools/compile.rs:142 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/ffb824d6e14af208.
Report an issue: GitHub.