{"record":{"id":"ffb824d6e14af208","repo":"denoland/deno","slug":"could-not-detect-a-supported-framework-in-ns","errorCode":null,"errorMessage":"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.","messagePattern":"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\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/tools/compile.rs","lineNumber":142,"sourceCode":"      std::fs::write(&entrypoint_path, detection.entrypoint_code)?;\n      compile_flags.source_file = entrypoint_path.display().to_string();\n      if compile_flags.output.is_none()\n        && let Some(dir_name) = dir.file_name()\n      {\n        compile_flags.output = Some(dir_name.to_string_lossy().into_owned());\n      }\n      // Add framework build output to includes, resolved relative to the\n      // detected app directory so `deno compile ./myapp` picks up\n      // `./myapp/.next` rather than `./.next`.\n      for inc in detection.include_paths {\n        let resolved = dir.join(&inc).display().to_string();\n        if !compile_flags.include.contains(&resolved) {\n          compile_flags.include.push(resolved);\n        }\n      }\n      Some(entrypoint_path)\n    } else {\n      bail!(\n        \"Could not detect a supported framework in '{}'.\\n\\\n         Supported frameworks: Next.js, Astro, Fresh, Remix, React Router, SvelteKit, Nuxt, SolidStart, TanStack Start, Vite\\n\\\n         Provide an explicit entrypoint instead of a directory.\",\n        dir.display()\n      );\n    }\n  } else {\n    None\n  };\n\n  // Keep flags.subcommand in sync so resolve_main_module sees the\n  // rewritten source_file instead of the original directory path.\n  flags.subcommand = DenoSubcommand::Compile(compile_flags.clone());\n\n  // Clean up temp entrypoints on exit (framework-detected and/or bundled).\n  struct CleanupGuard(Vec<PathBuf>);\n  impl Drop for CleanupGuard {\n    fn drop(&mut self) {","sourceCodeStart":124,"sourceCodeEnd":160,"githubUrl":"https://github.com/denoland/deno/blob/f7822238cab635a3a19f99f493f675fa81a7f9d8/cli/tools/compile.rs#L124-L160","documentation":"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.","triggerScenarios":"Thrown at cli/tools/compile.rs:142 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"}