Skip to content

Commit 101ea6b

Browse files
committed
Update error codes for 16.6.0-alpha.8af6728 release
1 parent 1a57dc6 commit 101ea6b

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
@@ -287,5 +287,9 @@
287287
"285": "The root failed to unmount after an error. This is likely a bug in React. Please file an issue.",
288288
"286": "%s(...): the first argument must be a React class instance. Instead received: %s.",
289289
"287": "It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `schedule/tracking` module with `schedule/tracking-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling",
290-
"288": "It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `schedule/tracing` module with `schedule/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling"
290+
"288": "It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `schedule/tracing` module with `schedule/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling",
291+
"289": "Function components cannot have refs.",
292+
"290": "Element ref was specified as a string (%s) but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://fb.me/react-refs-must-have-owner for more information.",
293+
"291": "Log of yielded values is not empty. Call expect(ReactTestRenderer).toHaveYielded(...) first.",
294+
"292": "The matcher `toHaveYielded` expects an instance of React Test Renderer.\n\nTry: expect(ReactTestRenderer).toHaveYielded(expectedYields)"
291295
}

0 commit comments

Comments
 (0)