denoland/deno · error
No target files found.
Error message
No target files found.
What it means
Error "No target files found." thrown in denoland/deno.
Source
Thrown at cli/tools/fmt.rs:205
maybe_show_format_confirmation(cli_options, fmt_flags)?;
let members_fmt_options =
cli_options.resolve_fmt_options_for_members(fmt_flags)?;
let mut paths_with_options_batches =
Vec::with_capacity(members_fmt_options.len());
for (_ctx, member_fmt_options) in members_fmt_options {
let files =
collect_fmt_files(cli_options, member_fmt_options.files.clone());
if !files.is_empty() {
paths_with_options_batches.push(PathsWithOptions {
base: member_fmt_options.files.base.clone(),
paths: files,
options: member_fmt_options,
});
}
}
if paths_with_options_batches.is_empty() && !fmt_flags.permit_no_files {
return Err(anyhow!("No target files found."));
}
Ok(paths_with_options_batches)
}
fn maybe_show_format_confirmation(
cli_options: &CliOptions,
fmt_flags: &FmtFlags,
) -> Result<(), AnyError> {
if fmt_flags.check
|| !fmt_flags.files.include.is_empty()
|| cli_options.workspace().deno_jsons().next().is_some()
|| cli_options.workspace().package_jsons().next().is_some()
{
return Ok(());
}
let confirm_result =
util::console::confirm(util::console::ConfirmOptions {View on GitHub (pinned to 89f33cbef2)
When it happens
Trigger: Thrown at cli/tools/fmt.rs:205 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of denoland/deno@89f33cbef2 (2026-08-16).
Data as JSON: /api/errors/a68d3df8636d6dfe.
Report an issue: GitHub.