{"record":{"id":"e16a4d456f662945","repo":"vercel/next.js","slug":"unstable-isunrecognizedactionerror-can-only-be-u","errorCode":null,"errorMessage":"`unstable_isUnrecognizedActionError` can only be used on the client.","messagePattern":"`unstable_isUnrecognizedActionError` can only be used on the client\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/next/src/client/components/navigation.react-server.ts","lineNumber":4,"sourceCode":"import { ReadonlyURLSearchParams } from './readonly-url-search-params'\n\nexport function unstable_isUnrecognizedActionError(): boolean {\n  throw new Error(\n    '`unstable_isUnrecognizedActionError` can only be used on the client.'\n  )\n}\n\nexport { redirect, permanentRedirect } from './redirect'\nexport { notFound } from './not-found'\nexport { forbidden } from './forbidden'\nexport { unauthorized } from './unauthorized'\nexport { unstable_rethrow } from './unstable-rethrow'\nexport { ReadonlyURLSearchParams }\n\nexport const RedirectType = {\n  push: 'push',\n  replace: 'replace',\n} as const\n","sourceCodeStart":1,"sourceCodeEnd":20,"githubUrl":"https://github.com/vercel/next.js/blob/0eb377541648e63402a47b38fee00a8d0ce8f8f1/packages/next/src/client/components/navigation.react-server.ts#L1-L20","documentation":"Server-module stub: this file is the react-server export surface of navigation, and unstable_isUnrecognizedActionError is a client-only hook. Importing and calling it from a server component resolves to this always-throwing placeholder instead of the real client implementation.","triggerScenarios":"unstable_isUnrecognizedActionError is imported or called in a server context.","commonSituations":"A React Server Component or server module references this client-only helper.","solutions":["Call unstable_isUnrecognizedActionError only in Client Components; guard with typeof window or move the check to the client."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0eb377541648e63402a47b38fee00a8d0ce8f8f1","analyzedAt":"2026-08-19T02:10:13.922Z","contentChangedAt":"2026-08-19T02:10:13.922Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}