{"record":{"id":"e6bc04c3fa900c3c","repo":"facebook/react","slug":"583","errorCode":"583","errorMessage":"The current renderer does not support view transitions. This error is likely caused by a bug in React. Please file an issue.","messagePattern":"The current renderer does not support view transitions\\. This error is likely caused by a bug in React\\. Please file an issue\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/react-reconciler/src/ReactFiberConfigWithNoViewTransition.js","lineNumber":14,"sourceCode":"/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n */\n\n// Renderers that don't support view transitions\n// can re-export everything from this module.\n\nfunction shim(...args: any): empty {\n  throw new Error(\n    'The current renderer does not support view transitions. ' +\n      'This error is likely caused by a bug in React. ' +\n      'Please file an issue.',\n  );\n}\n\n// View Transitions (when unsupported)\nexport const applyViewTransitionName = shim;\nexport const restoreViewTransitionName = shim;\nexport const cancelViewTransitionName = shim;\nexport const cancelRootViewTransitionName = shim;\nexport const restoreRootViewTransitionName = shim;\nexport const cloneRootViewTransitionContainer = shim;\nexport const removeRootViewTransitionClone = shim;\nexport type InstanceMeasurement = any;\nexport const measureInstance = shim;\nexport const measureClonedInstance = shim;\nexport const wasInstanceInViewport = shim;","sourceCodeStart":1,"sourceCodeEnd":32,"githubUrl":"https://github.com/facebook/react/blob/eafeac097ba51e1eab809c07102126bd5f8e5425/packages/react-reconciler/src/ReactFiberConfigWithNoViewTransition.js#L1-L32","documentation":"View Transitions (<ViewTransition>) require renderer support: applyViewTransitionName, restoreViewTransitionName, cancelViewTransitionName and the root variants. Renderers that don't implement them re-export ReactFiberConfigWithNoViewTransition, where every one is a throwing shim. Rendering a ViewTransition-tagged element against such a config throws this error.","triggerScenarios":"Rendering <ViewTransition> (or applying viewTransition name props) in a tree driven by react-native, a test renderer, or any custom renderer whose config re-exports NoViewTransition.","commonSituations":"Cross-platform component libraries using <ViewTransition> for animated layout changes, rendered on non-DOM targets; canary/experimental features reaching non-DOM renderers.","solutions":["Gate <ViewTransition> usage to DOM environments (feature-detect and fall back to a plain fragment/wrapper on other renderers).","Custom renderer authors: implement the view-transition hooks if your target supports similar animations.","Keep view-transition-dependent components out of react-native trees."],"exampleFix":"// before\n<ViewTransition name=\"item-expand\">{content}</ViewTransition>\n\n// after: DOM-only\n{isDom\n  ? <ViewTransition name=\"item-expand\">{content}</ViewTransition>\n  : <>{content}</>}","handlingStrategy":"type-guard","validationCode":"// Detect view-transition support before rendering <ViewTransition>\nconst supportsVT =\n  typeof document !== 'undefined' &&\n  typeof document.startViewTransition === 'function';\nconst content = supportsVT\n  ? <ViewTransition name=\"slide\">{children}</ViewTransition>\n  : <>{children}</>;","typeGuard":"function canUseViewTransition(element) {\n  return (\n    typeof document !== 'undefined' &&\n    typeof document.startViewTransition === 'function' &&\n    Boolean(element)\n  );\n}","tryCatchPattern":null,"preventionTips":["Wrap <ViewTransition> in a DOM-only branch of cross-platform components","Feature-detect document.startViewTransition, not just the React export","Keep a fallback wrapper so non-DOM renderers get plain children"],"tags":["view-transitions","custom-renderer","renderer-capability","react-native"],"backgroundTag":"view-transition-unsupported","analyzedSha":"eafeac097ba51e1eab809c07102126bd5f8e5425","analyzedAt":"2026-08-21T22:01:08.818Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}