From 07f129bec2b1ac05946b8d53f4bc071a102b6a72 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 14 Sep 2017 13:37:26 +0100 Subject: [PATCH] Update error codes --- scripts/error-codes/codes.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/error-codes/codes.json b/scripts/error-codes/codes.json index 1d5ed50aa1c2f..c71720a2a1d87 100644 --- a/scripts/error-codes/codes.json +++ b/scripts/error-codes/codes.json @@ -230,5 +230,7 @@ "228": "TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.", "229": "TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.", "230": "_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.unstable_createPortal).", - "231": "Expected `%s` listener to be a function, instead got a value of `%s` type." + "231": "Expected `%s` listener to be a function, instead got a value of `%s` type.", + "232": "_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).", + "233": "Unsupported top level event type \"%s\" dispatched" }