{"record":{"id":"920b1448733b63da","repo":"facebook/react","slug":"560","errorCode":"560","errorMessage":"Cannot use a startGestureTransition() with a comment node root.","messagePattern":"Cannot use a startGestureTransition\\(\\) with a comment node root\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js","lineNumber":1850,"sourceCode":"  if (\n    documentElement !== null &&\n    // $FlowFixMe[prop-missing]\n    documentElement.style.viewTransitionName === ''\n  ) {\n    // $FlowFixMe[prop-missing]\n    documentElement.style.viewTransitionName = 'none';\n  }\n\n  let containerInstance: HTMLElement;\n  if (rootContainer.nodeType === DOCUMENT_NODE) {\n    containerInstance = (rootContainer as any).body;\n  } else if (rootContainer.nodeName === 'HTML') {\n    containerInstance = rootContainer.ownerDocument.body as any;\n  } else if (\n    !disableCommentsAsDOMContainers &&\n    rootContainer.nodeType === COMMENT_NODE\n  ) {\n    throw new Error(\n      'Cannot use a startGestureTransition() with a comment node root.',\n    );\n  } else {\n    // If the container is not the whole document, then we ideally should probably\n    // clone the whole document outside of the React too.\n    containerInstance = rootContainer as any;\n  }\n\n  const containerParent = containerInstance.parentNode;\n  if (containerParent === null) {\n    throw new Error(\n      'Cannot use a startGestureTransition() on a detached root.',\n    );\n  }\n\n  const clone: HTMLElement = containerInstance.cloneNode(false);\n\n  const computedStyle = getComputedStyle(containerInstance);","sourceCodeStart":1832,"sourceCodeEnd":1868,"githubUrl":"https://github.com/facebook/react/blob/eafeac097ba51e1eab809c07102126bd5f8e5425/packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js#L1832-L1868","documentation":"Error \"Cannot use a startGestureTransition() with a comment node root.\" thrown in facebook/react.","triggerScenarios":"Thrown at packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js:1850 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":"eafeac097ba51e1eab809c07102126bd5f8e5425","analyzedAt":"2026-08-21T22:01:08.818Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}