{"record":{"id":"40706d768c05f1e7","repo":"facebook/react","slug":"357","errorCode":"357","errorMessage":"The current renderer does not support React Scopes. This error is likely caused by a bug in React. Please file an issue.","messagePattern":"The current renderer does not support React Scopes\\. This error is likely caused by a bug in React\\. Please file an issue\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/react-reconciler/src/ReactFiberConfigWithNoScopes.js","lineNumber":14,"sourceCode":"/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n */\n\n// Renderers that don't support React Scopes\n// can re-export everything from this module.\n\nfunction shim(...args: any): empty {\n  throw new Error(\n    'The current renderer does not support React Scopes. ' +\n      'This error is likely caused by a bug in React. ' +\n      'Please file an issue.',\n  );\n}\n\n// React Scopes (when unsupported)\nexport const prepareScopeUpdate = shim;\nexport const getInstanceFromScope = shim;\n","sourceCodeStart":1,"sourceCodeEnd":24,"githubUrl":"https://github.com/facebook/react/blob/eafeac097ba51e1eab809c07102126bd5f8e5425/packages/react-reconciler/src/ReactFiberConfigWithNoScopes.js#L1-L24","documentation":"React Scopes are an experimental renderer-level API; renderers that don't implement them re-export ReactFiberConfigWithNoScopes, where prepareScopeUpdate and getInstanceFromScope are throwing shims. The reconciler calls these when completing/updating a Scope host instance, so this error means Scope machinery ran on a renderer without scope support.","triggerScenarios":"Using the experimental Scope API (unstable Scope components, or DevTools/test tooling that inspects scopes) with a renderer whose config re-exports NoScopes — anything other than the DOM renderer that implements them.","commonSituations":"Experimental React features or internal Meta tooling leaking into an app built on react-native or a custom renderer; forks built against a different reconciler.","solutions":["Remove or gate Scope API usage to a renderer that implements scopes (react-dom).","If you believe the call is spurious (no Scope in your tree), align react/react-dom/renderer versions and file an issue — the reconciler should not reach the shim without a Scope instance."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"// Contain experimental-API failures rather than crash the app\ncomponentDidCatch(err) {\n  if (err.message.includes('does not support React Scopes')) {\n    this.setState({disableExperimental: true}); // fall back to plain components\n  }\n}","preventionTips":["Gate experimental Scope API usage behind DOM-environment checks","Keep canary/experimental imports out of react-native builds","Track which renderer each experimental feature requires before adopting"],"tags":["scopes","experimental","custom-renderer","renderer-capability"],"backgroundTag":"renderer-capability-unsupported","analyzedSha":"eafeac097ba51e1eab809c07102126bd5f8e5425","analyzedAt":"2026-08-21T22:01:08.818Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}