{"record":{"id":"6106231e81f7cb51","repo":"facebook/react","slug":"getprofilingdata-not-supported-by-this-renderer","errorCode":null,"errorMessage":"getProfilingData not supported by this renderer","messagePattern":"getProfilingData not supported by this renderer","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/react-devtools-shared/src/backend/flight/renderer.js","lineNumber":188,"sourceCode":"      return null;\n    },\n    getSuspenseNodeIDForHostInstance() {\n      return null;\n    },\n    getInstanceAndStyle() {\n      return {\n        instance: null,\n        style: null,\n      };\n    },\n    getOwnersList() {\n      return null;\n    },\n    getPathForElement() {\n      return null;\n    },\n    getProfilingData() {\n      throw new Error('getProfilingData not supported by this renderer');\n    },\n    handleCommitFiberRoot() {},\n    handleCommitFiberUnmount() {},\n    handlePostCommitFiberRoot() {},\n    hasElementWithId() {\n      return false;\n    },\n    inspectElement(\n      requestID: number,\n      id: number,\n      path: Array<string | number> | null,\n    ) {\n      return {\n        id,\n        responseID: requestID,\n        type: 'not-found',\n      };\n    },","sourceCodeStart":170,"sourceCodeEnd":206,"githubUrl":"https://github.com/facebook/react/blob/eafeac097ba51e1eab809c07102126bd5f8e5425/packages/react-devtools-shared/src/backend/flight/renderer.js#L170-L206","documentation":"The Flight backend wraps the server-components (Flight/RSC) graph and implements the shared RendererInterface mostly with stubs, because that graph is not inspectable like a client tree. getProfilingData() deliberately throws: profiling is implemented only by the Fiber renderer. agent.js:560 forwards the frontend's profilingData request to any renderer id, so requesting profiling data from the Flight renderer throws instead of returning data.","triggerScenarios":"Stopping a profiling session or exporting profile data while the rendererID in play belongs to the Flight renderer - apps with server-component graphs (React Native/IO, RSC-heavy web apps) where a flight renderer registers alongside the client renderer and the frontend requests its profiling data.","commonSituations":"Selecting the server-components renderer in the Profiler; custom frontends that do not gate Profiler tabs per renderer kind; mixed client+flight renderers on one page.","solutions":["Profile the client (Fiber) renderer - select it in the renderer dropdown instead of the Flight/Server Components renderer.","In custom frontends, gate profiling start/stop/export on the renderer's capabilities (bundleType/kind or a supportsProfiling flag) before sending getProfilingData for a rendererID.","Update DevTools - newer agent code guards unsupported renderers on this path.","If stock DevTools throws here, file an issue naming the renderer kinds attached."],"exampleFix":"// before (agent-style forwarding, throws for flight)\nbridge.send('profilingData', renderers[rendererID].getProfilingData());\n\n// after - only request data from renderers that support profiling\nconst renderer = renderers[rendererID];\nif (renderer != null && renderer.bundleType !== 'flight') {\n  bridge.send('profilingData', renderer.getProfilingData());\n}","handlingStrategy":"validation","validationCode":"// in a custom frontend/agent: gate profiling export on renderer capability\nconst renderer = renderers[rendererID];\nif (renderer != null && supportsProfiling(renderer)) {\n  bridge.send('profilingData', renderer.getProfilingData());\n}\nfunction supportsProfiling(renderer) {\n  // flight backends only implement stubs; only fiber renderers record profiles\n  return renderer.bundleType !== 'flight' && renderer.supportsProfiling !== false;\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Profile the client (Fiber) renderer; the Flight/Server Components graph has no profiling data by design.","Gate Profiler start/stop/export UI per renderer kind before sending requests.","Update DevTools - newer agent code guards unsupported renderers on this path."],"tags":["react-devtools","profiler","flight","server-components","unsupported-operation"],"backgroundTag":"profiling-unsupported-renderer","analyzedSha":"eafeac097ba51e1eab809c07102126bd5f8e5425","analyzedAt":"2026-08-21T22:01:08.818Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}