facebook/react · error · Error
560
560
Error message
Cannot use a startGestureTransition() with a comment node root.
What it means
Error "Cannot use a startGestureTransition() with a comment node root." thrown in facebook/react.
Source
Thrown at packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js:1850
if (
documentElement !== null &&
// $FlowFixMe[prop-missing]
documentElement.style.viewTransitionName === ''
) {
// $FlowFixMe[prop-missing]
documentElement.style.viewTransitionName = 'none';
}
let containerInstance: HTMLElement;
if (rootContainer.nodeType === DOCUMENT_NODE) {
containerInstance = (rootContainer as any).body;
} else if (rootContainer.nodeName === 'HTML') {
containerInstance = rootContainer.ownerDocument.body as any;
} else if (
!disableCommentsAsDOMContainers &&
rootContainer.nodeType === COMMENT_NODE
) {
throw new Error(
'Cannot use a startGestureTransition() with a comment node root.',
);
} else {
// If the container is not the whole document, then we ideally should probably
// clone the whole document outside of the React too.
containerInstance = rootContainer as any;
}
const containerParent = containerInstance.parentNode;
if (containerParent === null) {
throw new Error(
'Cannot use a startGestureTransition() on a detached root.',
);
}
const clone: HTMLElement = containerInstance.cloneNode(false);
const computedStyle = getComputedStyle(containerInstance);View on GitHub (pinned to eafeac097b)
When it happens
Trigger: Thrown at packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js:1850 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of facebook/react@eafeac097b (2026-08-21).
Data as JSON: /api/errors/920b1448733b63da.
Report an issue: GitHub.