Update error codes for 16.6.0-alpha.8af6728 release
Dan Abramov committed
Oct 10, 2018 at 17:18 UTC
101ea6b84d9dac56a2088507ee150c9244a4adbd
1 file changed
+5
-1
scripts/error-codes/codes.json
+5
-1
@@ -287,5 +287,9 @@
287
"285": "The root failed to unmount after an error. This is likely a bug in React. Please file an issue.",
288
"286": "%s(...): the first argument must be a React class instance. Instead received: %s.",
289
"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)"
295
}