facebook/react · error · Error
552
552
Error message
Cannot use a startGestureTransition() on a detached root.
What it means
Error "Cannot use a startGestureTransition() on a detached root." thrown in facebook/react.
Source
Thrown at packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js:1861
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);
if (
computedStyle.position === 'absolute' ||
computedStyle.position === 'fixed'
) {
// If the style is already absolute, we don't have to do anything because it'll appear
// in the same place.
} else {
// Otherwise we need to absolutely position the clone in the same location as the original.
let positionedAncestor: HTMLElement = containerParent;
while (View on GitHub (pinned to eafeac097b)
When it happens
Trigger: Thrown at packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js:1861 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/48dcb2d2cb363544.
Report an issue: GitHub.