Skip to content

Commit 0c756fb

Browse files
committed
Update error codes
1 parent 6c22b6c commit 0c756fb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/error-codes/codes.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -300,5 +300,9 @@
300300
"298": "Hooks can only be called inside the body of a function component.",
301301
"299": "%s(...): Target container is not a DOM element.",
302302
"300": "Rendered fewer hooks than expected. This may be caused by an accidental early return statement.",
303-
"301": "Too many re-renders. React limits the number of renders to prevent an infinite loop."
303+
"301": "Too many re-renders. React limits the number of renders to prevent an infinite loop.",
304+
"302": "It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling",
305+
"303": "suspense fallback not found, something is broken",
306+
"304": "Maximum number of concurrent React renderers exceeded. This can happen if you are not properly destroying the Readable provided by React. Ensure that you call .destroy() on it if you no longer want to read from it, and did not read to the end. If you use .pipe() this should be automatic.",
307+
"305": "The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."
304308
}

0 commit comments

Comments
 (0)