Skip to content

Commit 9fe744e

Browse files
committed
Update error codes (#10622)
**what is the change?:** This just updated the error codes on the docs. For my future self, recording the steps it took to get here: - On master, run `npm run build -- --extract-errors` - Create a commit with those changes, and open a PR (facebook/react#10619) - Cherry-pick that commit onto 15-stable, and open a PR (facebook/react#10621) - Update the error codes on the `gh-pages branch` by doing the following based on docs (https://github.com/facebook/react/tree/master/docs#updating-facebookgithubioreact): - Set up a sister directory to `react` with `gh-pages` checked out, and call it `react-gh-pages` - In your `react` repo, with `15-stable` checked out and the error-codes update cherry-picked, run: `cd docs && bundle rake exec && bundle exec rake fetch_remotes && bundle exec rake release` - `cd ../react-gh-pages` and check in those changes, create a commit/PR - Manually test running the docs **why make this change?:** Even though this is just an RC, and not a final major release, we still want the docs to be as up-to-date as possible. **test plan:** Run the docs locally and make sure things work. (Flarnie will insert screenshots.) **issue:** facebook/react#8854
1 parent bd59fda commit 9fe744e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

js/errorMap.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,14 @@ var errorMap = {
221221
"219": "getInspectorDataForViewTag() is not available in production",
222222
"220": "Container does not support insertBefore operation",
223223
"221": "Tried to register two views with the same name %s",
224-
"222": "View config not found for name %s"
224+
"222": "View config not found for name %s",
225+
"223": "Trying to release an event instance into a pool of a different type.",
226+
"224": "Can't read from currently-mounting component. This error is likely caused by a bug in React. Please file an issue.",
227+
"225": "Unexpected object passed to ReactTestInstance constructor (tag: %s). This is probably a bug in React.",
228+
"226": "Unsupported component type %s in test renderer. This is probably a bug in React.",
229+
"227": "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.",
230+
"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.",
231+
"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.",
232+
"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).",
233+
"231": "Expected `%s` listener to be a function, instead got a value of `%s` type."
225234
};

0 commit comments

Comments
 (0)