Skip to content
JS
Errors

React errors

Rendering, hooks and hydration errors.

598 entries0 written pages
Showing 251 to 300 of 598Source: React error codes
CodeError
React error #251batch.commit: Cannot commit a batch multiple times.
React error #252The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a...
React error #253work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.
React error #254Element ref was specified as a string (%s) but no owner was set. This could happen for one of the following reasons: 1. You may be adding...
React error #255Expected ReactFbErrorUtils.invokeGuardedCallback to be a function.
React error #257Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.
React error #258Unknown element-like object type: %s. This is likely a bug in React. Please file an issue.
React error #259The experimental Call and Return types are not currently supported by the server renderer.
React error #260Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.
React error #261Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.
React error #262Expired work should have completed. This error is likely caused by a bug in React. Please file an issue.
React error #263dispatch: Cannot dispatch during the render phase.
React error #264An error logging effect should not have been scheduled if no errors were captured. This error is likely caused by a bug in React. Please...
React error #265This unit of work tag cannot capture errors. This error is likely caused by a bug in React. Please file an issue.
React error #266A subscription must return an unsubscribe function.
React error #267The argument must be a React element, but you passed %s.
React error #268Argument appears to not be a ReactComponent. Keys: %s
React error #269Profiler must specify an "id" string and "onRender" function as props
React error #270The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue.
React error #271Failed to replay rendering after an error. This is likely caused by a bug in React. Please file an issue with a reproducing case to help...
React error #273Nesting of <View> within <Text> is not currently supported.
React error #274Text strings must be rendered within a <Text> component.
React error #275The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue.
React error #276React depends on requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills
React error #277Context.unstable_read(): Context can only be read while React is rendering, e.g. inside the render method or getDerivedStateFromProps.
React error #278unstable_createRoot(...): Target container is not a DOM element.
React error #279Trying to release an event instance into a pool of a different type.
React error #280setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React....
React error #281Finished root should have a work-in-progress. This error is likely caused by a bug in React. Please file an issue.
React error #282If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an...
React error #283Element type is invalid. Received a promise that resolves to: %s. Promise elements must resolve to a class or function.
React error #284Expected ref to be a function, an object returned by React.createRef(), or undefined/null.
React error #285The root failed to unmount after an error. This is likely a bug in React. Please file an issue.
React error #286%s(...): the first argument must be a React class instance. Instead received: %s.
React error #287It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the...
React error #288It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the...
React error #289Function components cannot have refs.
React error #290Element ref was specified as a string (%s) but no owner was set. This could happen for one of the following reasons: 1. You may be adding...
React error #292The matcher `toHaveYielded` expects an instance of React Test Renderer. Try: expect(Scheduler).toHaveYielded(expectedYields)
React error #293Context can only be read while React is rendering, e.g. inside the render method or getDerivedStateFromProps.
React error #294ReactDOMServer does not yet support Suspense.
React error #295ReactDOMServer does not yet support lazy-loaded components.
React error #297The matcher `unstable_toHaveYielded` expects an instance of React Test Renderer. Try:...
React error #298Hooks can only be called inside the body of a function component.
React error #299Target container is not a DOM element.
React error #300Rendered fewer hooks than expected. This may be caused by an accidental early return statement.
React error #301Too many re-renders. React limits the number of renders to prevent an infinite loop.
React error #302It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the...
React error #303ReactDOMServer did not find an internal fallback frame for Suspense. This is a bug in React. Please file an issue.
React error #304Maximum number of concurrent React renderers exceeded. This can happen if you are not properly destroying the Readable provided by React....

Other families: JavaScript, Node.js, npm, Next.js, TypeScript, Vite, webpack, Jest