1
{
2
- "0": "React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.",
2
+ "0": "Encountered an invalid child; DOM elements are not valid children of React components.",
3
"1": "update(): expected target of %s to be an array; got %s.",
4
"2": "update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?",
5
"3": "update(): You provided a key path to update() that did not contain one of %s. Did you forget to include {%s: ...}?",
9
"7": "Expected %s target to be an array; got %s",
10
"8": "update(): expected spec of %s to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",
11
"9": "update(): expected spec of %s to be a function; got %s.",
12
- "10": "findAllInRenderedTree(...): instance must be a composite component",
12
+ "10": "instance must be a composite component",
13
"11": "TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.",
14
"12": "ReactShallowRenderer render(): Invalid component element.%s",
15
"13": "ReactShallowRenderer render(): Shallow rendering works only with custom components, not primitives (%s). Instead of calling `.render(el)` and inspecting the rendered output, look at `el.props` directly instead.",
16
"14": "TestUtils.Simulate expects a component instance and not a ReactElement.TestUtils.Simulate will not work if you are using shallow rendering.",
17
- "15": "reactComponentExpect(...): instance must be a composite component",
17
+ "15": "instance must be a composite component",
18
"16": "Do not override existing functions.",
19
"17": "All native instances should have a tag.",
20
"18": "Expected a component class, got %s.%s",
21
"19": "Expect a native root tag, instead got %s",
22
"20": "RawText \"%s\" must be wrapped in an explicit <Text> component.",
23
- "21": "findNodeHandle(...): Argument is not a component (type: %s, keys: %s)",
24
- "22": "findNodeHandle(...): Unable to find node handle for unmounted component.",
23
+ "21": "Argument is not a component (type: %s, keys: %s)",
24
+ "22": "Unable to find node handle for unmounted component.",
25
"23": "onlyChild must be passed a children with exactly one child.",
26
"24": "Mismatched list of contexts in callback queue",
27
"25": "Trying to release an instance into a pool of a different type.",
28
"26": "Unexpected node: %s",
29
- "27": "Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction.",
29
+ "27": "Cannot initialize a transaction when there is already an outstanding transaction.",
30
"28": "Transaction.closeAll(): Cannot close transaction when none are open.",
31
- "29": "accumulate(...): Accumulated items must be not be null or undefined.",
32
- "30": "accumulateInto(...): Accumulated items must not be null or undefined.",
31
+ "29": "Accumulated items must be not be null or undefined.",
32
+ "30": "Accumulated items must not be null or undefined.",
33
"31": "Objects are not valid as a React child (found: %s). If you meant to render a collection of children, use an array instead.",
34
"32": "Unable to find element with ID %s.",
35
"33": "getNodeFromInstance: Invalid argument.",
36
"34": "React DOM tree root should always have a node reference.",
37
"35": "isAncestor: Invalid argument.",
38
"36": "getParentInstance: Invalid argument.",
39
- "37": "_registerComponent(...): Target container is not a DOM element.",
39
+ "37": "_Target container is not a DOM element.",
40
"38": "parentComponent must be a valid React Component",
41
"39": "ReactDOM.render(): Invalid component element.%s",
42
- "40": "unmountComponentAtNode(...): Target container is not a DOM element.",
43
- "41": "mountComponentIntoNode(...): Target container is not valid.",
42
+ "40": "Target container is not a DOM element.",
43
+ "41": "Target container is not valid.",
44
"42": "You're trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\n%s",
45
"43": "You're trying to render a component to the document but you didn't use server rendering. We can't do this without using server rendering due to cross-browser quirks. See ReactDOMServer.renderToString() for server rendering.",
46
"44": "findDOMNode was called on an unmounted component.",
47
"45": "Element appears to be neither ReactComponent nor DOMNode (keys: %s)",
48
"46": "renderToString(): You must pass a valid ReactElement.",
49
"47": "renderToStaticMarkup(): You must pass a valid ReactElement.",
50
- "48": "injectDOMPropertyConfig(...): You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.",
50
+ "48": "You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.",
51
"49": "DOMProperty: Properties that have side effects must use property: %s",
52
"50": "DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s",
53
- "51": "dangerouslyRenderMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString for server rendering.",
54
- "52": "dangerouslyRenderMarkup(...): Missing markup.",
53
+ "51": "Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString for server rendering.",
54
+ "52": "Missing markup.",
55
"53": "Danger: Assigning to an already-occupied result index.",
56
"54": "Danger: Did not assign to every index of resultList.",
57
"55": "Danger: Expected markup to render %s nodes, but rendered %s.",
58
- "56": "dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString() for server rendering.",
59
- "57": "dangerouslyReplaceNodeWithMarkup(...): Missing markup.",
60
- "58": "dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the <html> node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See ReactDOMServer.renderToString().",
58
+ "56": "Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString() for server rendering.",
59
+ "57": "Missing markup.",
60
+ "58": "Cannot replace markup of the <html> node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See ReactDOMServer.renderToString().",
61
"59": "%s is a void element tag and must not have `children` or use `props.dangerouslySetInnerHTML`.",
62
"60": "Can only set one of `children` or `props.dangerouslySetInnerHTML`.",
63
"61": "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.",
64
"62": "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.",
65
"63": "Must be mounted to trap events",
66
- "64": "trapBubbledEvent(...): Requires node to be rendered.",
66
+ "64": "Requires node to be rendered.",
67
"65": "Invalid tag: %s",
68
"66": "<%s> tried to unmount. Because of cross-browser quirks it is impossible to unmount some top-level components (eg <html>, <head>, and <body>) reliably and efficiently. To fix this, have a single top-level component that never unmounts render these elements.",
69
"67": "Missing closing comment for text component %s",
82
"80": "mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.",
83
"81": "mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",
84
"82": "%s.getInitialState(): must return an object or null",
85
- "83": "createClass(...): Class specification must implement a `render` method.",
85
+ "83": "Class specification must implement a `render` method.",
86
"84": "%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",
87
- "85": "setState(...): takes an object of state variables to update or a function which returns an object of state variables.",
87
+ "85": "takes an object of state variables to update or a function which returns an object of state variables.",
88
"86": "SimpleEventPlugin: Unhandled event type, `%s`.",
89
"87": "Cannot provide a checkedLink and a valueLink. If you want to use checkedLink, you probably don't want to use valueLink and vice versa.",
90
"88": "Cannot provide a valueLink and a value or onChange event. If you want to use value or onChange, you probably don't want to use valueLink.",
102
"100": "EventPluginRegistry: More than one plugin attempted to publish the same registration name, `%s`.",
103
"101": "EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.",
104
"102": "EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.",
105
- "103": "executeDirectDispatch(...): Invalid `event`.",
105
+ "103": "Invalid `event`.",
106
"104": "ReactCompositeComponent: injectEnvironment() can only be called once.",
107
- "105": "%s(...): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.",
107
+ "105": "A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.",
108
"106": "%s.state: must be set to an object or null",
109
"107": "%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",
110
"108": "%s.getChildContext(): key \"%s\" is not defined in childContextTypes.",
112
"110": "Stateless function components cannot have refs.",
113
"111": "There is no registered component for the tag %s",
114
"112": "getNextDescendantID(%s, %s): Received an invalid React DOM ID.",
115
- "113": "getNextDescendantID(...): React has made an invalid assumption about the DOM hierarchy. Expected `%s` to be an ancestor of `%s`.",
115
+ "113": "React has made an invalid assumption about the DOM hierarchy. Expected `%s` to be an ancestor of `%s`.",
116
"114": "getFirstCommonAncestorID(%s, %s): Expected a valid React DOM ID: %s",
117
- "115": "traverseParentPath(...): Cannot traverse from and to the same ID, `%s`.",
117
+ "115": "Cannot traverse from and to the same ID, `%s`.",
118
"116": "traverseParentPath(%s, %s, ...): Cannot traverse from two IDs that do not have a parent path.",
119
"117": "traverseParentPath(%s, %s, ...): Detected an infinite loop while traversing the React DOM ID tree. This may be due to malformed IDs: %s",
120
"118": "updateTextContent called on non-empty component.",
121
- "119": "addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://reactjs.org/link/refs-must-have-owner).",
122
- "120": "removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://reactjs.org/link/refs-must-have-owner).",
121
+ "119": "Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://reactjs.org/link/refs-must-have-owner).",
122
+ "120": "Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://reactjs.org/link/refs-must-have-owner).",
123
"121": "performUpdateIfNecessary: Unexpected batch number (current %s, pending %s)",
124
"122": "%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",
125
"123": "ReactUpdates: must inject a reconcile transaction class and batching strategy",
151
"149": "Element ref was specified as a string (%s) but no owner was set. You may have multiple copies of React loaded. (details: https://reactjs.org/link/refs-must-have-owner).",
152
"150": "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.",
153
"151": "An iterable object provided no iterator.",
154
- "152": "%s(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.",
154
+ "152": "Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.",
155
"153": "Resuming work not yet implemented.",
156
"154": "We should always have pending or current props. This error is likely caused by a bug in React. Please file an issue.",
157
"155": "An indeterminate component should never have mounted. This error is likely caused by a bug in React. Please file an issue.",
264
"264": "An error logging effect should not have been scheduled if no errors were captured. This error is likely caused by a bug in React. Please file an issue.",
265
"265": "This unit of work tag cannot capture errors. This error is likely caused by a bug in React. Please file an issue.",
266
"266": "A subscription must return an unsubscribe function.",
267
- "267": "React.cloneElement(...): The argument must be a React element, but you passed %s.",
267
+ "267": "The argument must be a React element, but you passed %s.",
268
"268": "Argument appears to not be a ReactComponent. Keys: %s",
269
"269": "Profiler must specify an \"id\" string and \"onRender\" function as props",
270
"270": "The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue.",
293
"295": "ReactDOMServer does not yet support lazy-loaded components.",
294
"297": "The matcher `unstable_toHaveYielded` expects an instance of React Test Renderer.\n\nTry: expect(ReactTestRenderer).unstable_toHaveYielded(expectedYields)",
295
"298": "Hooks can only be called inside the body of a function component.",
296
- "299": "createRoot(...): Target container is not a DOM element.",
296
+ "299": "Target container is not a DOM element.",
297
"300": "Rendered fewer hooks than expected. This may be caused by an accidental early return statement.",
298
"301": "Too many re-renders. React limits the number of renders to prevent an infinite loop.",
299
"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 https://reactjs.org/link/profiling",
326
"331": "Cannot flush passive effects while already rendering.",
327
"332": "Unknown priority level.",
328
"333": "This should have a parent host component initialized. This error is likely caused by a bug in React. Please file an issue.",
329
- "334": "accumulate(...): Accumulated items must not be null or undefined.",
329
+ "334": "Accumulated items must not be null or undefined.",
330
"335": "ReactDOMServer does not yet support the event API.",
331
"338": "ReactDOMServer does not yet support the fundamental API.",
332
"340": "Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.",
491
"503": "Cannot use() an already resolved Client Reference.",
492
"504": "Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client.",
493
"505": "Cannot render an Async Component, Promise or React.Lazy inside React.Children. We recommend not iterating over children and just rendering them plain.",
494
- "506": "Functions are not valid as a child of Client Components. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.%s"
494
+ "506": "Functions are not valid as a child of Client Components. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.%s",
495
+ "507": "Expected the last optional `callback` argument to be a function. Instead received: %s.",
496
+ "508": "The first argument must be a React class instance. Instead received: %s."
497
}