{
  "id": "nextjs/revalidate-path-not-found",
  "signature": "Error: revalidatePath('/path') failed. The path does not match any existing route.",
  "signature_zh": "错误：revalidatePath('/path') 失败。该路径与任何现有路由不匹配。",
  "regex": "Error: revalidatePath\\('.*'\\) failed\\. The path does not match any existing route\\.",
  "domain": "nextjs",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "The revalidatePath function is called with a path that does not correspond to any route in the app directory, often due to a typo or mismatch in dynamic route segments.",
  "root_cause_type": "generic",
  "root_cause_zh": "revalidatePath 函数被调用时使用的路径与 app 目录中的任何路由不匹配，通常是由于拼写错误或动态路由段不匹配。",
  "versions": [
    {
      "version": "next@14.2.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "next@15.0.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "revalidatePath does not support query parameters; it only matches the pathname. Including query strings will cause a mismatch.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "revalidatePath is asynchronous and must be awaited to ensure the revalidation completes. Without await, the error may be swallowed.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify the exact route structure in the app directory. For dynamic routes like [slug], use the actual slug value in the path, e.g., revalidatePath('/posts/my-post'). Use revalidatePath('/posts/[slug]') only if you want to revalidate all pages with that pattern.",
      "success_rate": 0.95,
      "how": "Verify the exact route structure in the app directory. For dynamic routes like [slug], use the actual slug value in the path, e.g., revalidatePath('/posts/my-post'). Use revalidatePath('/posts/[slug]') only if you want to revalidate all pages with that pattern.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use revalidateTag instead of revalidatePath if you have tagged the fetch calls with a specific tag.",
      "success_rate": 0.9,
      "how": "Use revalidateTag instead of revalidatePath if you have tagged the fetch calls with a specific tag.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Verify the exact route structure in the app directory. For dynamic routes like [slug], use the actual slug value in the path, e.g., revalidatePath('/posts/my-post'). Use revalidatePath('/posts/[slug]') only if you want to revalidate all pages with that pattern.",
    "Use revalidateTag instead of revalidatePath if you have tagged the fetch calls with a specific tag."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://nextjs.org/docs/app/api-reference/functions/revalidatePath",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.92,
  "resolvable": "true",
  "first_seen": "2024-03-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}