{"record":{"id":"be604c69ff00416e","repo":"facebook/react","slug":"446","errorCode":"446","errorMessage":"\"resourceRoot\" was expected to exist. This is a bug in React.","messagePattern":"\"resourceRoot\" was expected to exist\\. This is a bug in React\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js","lineNumber":5519,"sourceCode":"};\n\ntype StylesheetQualifyingProps = {\n  rel: 'stylesheet',\n  href: string,\n  precedence: string,\n  [string]: mixed,\n};\n\n// This function is called in begin work and we should always have a currentDocument set\nexport function getResource(\n  type: string,\n  currentProps: any,\n  pendingProps: any,\n  currentResource: null | Resource,\n): null | Resource {\n  const resourceRoot = getCurrentResourceRoot();\n  if (!resourceRoot) {\n    throw new Error(\n      '\"resourceRoot\" was expected to exist. This is a bug in React.',\n    );\n  }\n  switch (type) {\n    case 'meta':\n    case 'title': {\n      return null;\n    }\n    case 'style': {\n      if (\n        typeof pendingProps.precedence === 'string' &&\n        typeof pendingProps.href === 'string'\n      ) {\n        const key = getStyleKey(pendingProps.href);\n        const styles = getResourcesFromRoot(resourceRoot).hoistableStyles;\n        let resource = styles.get(key);\n        if (!resource) {\n          resource = {","sourceCodeStart":5501,"sourceCodeEnd":5537,"githubUrl":"https://github.com/facebook/react/blob/eafeac097ba51e1eab809c07102126bd5f8e5425/packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js#L5501-L5537","documentation":"Error \"\"resourceRoot\" was expected to exist. This is a bug in React.\" thrown in facebook/react.","triggerScenarios":"Thrown at packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js:5519 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"}