{"record":{"id":"a18622ab99746401","repo":"denoland/deno","slug":"url-has-no-resolvable-mirror-path-url","errorCode":null,"errorMessage":"URL has no resolvable mirror path: {url}","messagePattern":"URL has no resolvable mirror path: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/tools/installer/npm_compat.rs","lineNumber":1293,"sourceCode":"      {\n        queue.push_back(child);\n      }\n    }\n  }\n\n  Ok(paths)\n}\n\n/// Write `bytes` to the local mirror file for `url`, returning the path\n/// relative to `.deno/` (suitable for tsconfig `paths`).\nfn write_mirror(\n  remote_root: &Path,\n  url: &Url,\n  bytes: &[u8],\n  type_check_remote: bool,\n) -> Result<String, AnyError> {\n  let local_path = url_to_local_path(remote_root, url)\n    .ok_or_else(|| anyhow!(\"URL has no resolvable mirror path: {url}\"))?;\n  if let Some(parent) = local_path.parent() {\n    std::fs::create_dir_all(parent)?;\n  }\n  // Mark mirrored script modules `// @ts-nocheck`. Remote dependencies are not\n  // the user's code and Deno itself doesn't re-type-check them; without this,\n  // stock tsc/tsgo would report every type error inside the dependency (which\n  // dwarfs the project's own diagnostics). `@ts-nocheck` suppresses errors in\n  // the file while keeping its exported and ambient types available to\n  // importers, and triple-slash directives (which may follow a leading comment)\n  // still apply. Skipped under `deno check --all`, which does type-check remote\n  // modules.\n  let is_script = matches!(\n    local_path.extension().and_then(|e| e.to_str()),\n    Some(\"ts\" | \"tsx\" | \"mts\" | \"cts\" | \"js\" | \"jsx\" | \"mjs\" | \"cjs\")\n  );\n  if is_script && !type_check_remote {\n    let mut content = Vec::with_capacity(bytes.len() + 16);\n    content.extend_from_slice(b\"// @ts-nocheck\\n\");","sourceCodeStart":1275,"sourceCodeEnd":1311,"githubUrl":"https://github.com/denoland/deno/blob/89f33cbef296a2b287f323d42de54c871fa69c77/cli/tools/installer/npm_compat.rs#L1275-L1311","documentation":"Error \"URL has no resolvable mirror path: {url}\" thrown in denoland/deno.","triggerScenarios":"Thrown at cli/tools/installer/npm_compat.rs:1293 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":"89f33cbef296a2b287f323d42de54c871fa69c77","analyzedAt":"2026-08-16T07:54:21.310Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}