{"record":{"id":"e4c099ada91dc4fd","repo":"vercel/next.js","slug":"invalid-opengraph-type-exhaustivecheck","errorCode":null,"errorMessage":"Invalid OpenGraph type: ${_exhaustiveCheck}","messagePattern":"Invalid OpenGraph type: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/lib/metadata/metadata.tsx","lineNumber":1419,"sourceCode":"                content={String(og.series)}\n              />\n            )\n          }\n          break\n\n        case 'video.tv_show':\n          tags.push(\n            <meta key={i++} property=\"og:type\" content=\"video.tv_show\" />\n          )\n          break\n\n        case 'video.other':\n          tags.push(<meta key={i++} property=\"og:type\" content=\"video.other\" />)\n          break\n\n        default:\n          const _exhaustiveCheck: never = ogType\n          throw new Error(`Invalid OpenGraph type: ${_exhaustiveCheck}`)\n      }\n    }\n  }\n\n  // --- Twitter ---\n  if (metadata.twitter) {\n    const tw = metadata.twitter\n    const { card } = tw\n\n    if (card) {\n      tags.push(<meta key={i++} name=\"twitter:card\" content={card} />)\n    }\n    if (tw.site) {\n      tags.push(<meta key={i++} name=\"twitter:site\" content={tw.site} />)\n    }\n    if (tw.siteId) {\n      tags.push(<meta key={i++} name=\"twitter:site:id\" content={tw.siteId} />)\n    }","sourceCodeStart":1401,"sourceCodeEnd":1437,"githubUrl":"https://github.com/vercel/next.js/blob/0eb377541648e63402a47b38fee00a8d0ce8f8f1/packages/next/src/lib/metadata/metadata.tsx#L1401-L1437","documentation":"Exhaustiveness guard in createMetadataElements' switch over OpenGraph og:type values: it throws when ogType holds a value not covered by the known OpenGraph type union — i.e. an unknown/invalid og:type reached metadata rendering that TypeScript's never check would have caught at compile time.","triggerScenarios":"An unrecognized OpenGraph type reaches metadata rendering.","commonSituations":"Internal invariant: an openGraph type not handled by the metadata renderer.","solutions":["Use a valid OpenGraph type value in the metadata export."],"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-14T00:17:10.932Z"}