mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Remove WARNINGS file from FB (#27820)
The test was migrated to the generated JS file that allows Jest to track
the dependencies, we can now remove this file generation.
DiffTrain build for [40f653d13c](https://github.com/facebook/react/commit/40f653d13c363c6f81b13de67ce391991fb1f870)
This commit is contained in:
@@ -1 +1 @@
|
||||
5bcade5fcf5610e82e7cda05cc6de574bdace0c7
|
||||
40f653d13c363c6f81b13de67ce391991fb1f870
|
||||
|
||||
@@ -1,404 +0,0 @@
|
||||
"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values."
|
||||
"%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"
|
||||
"%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components"
|
||||
"%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components"
|
||||
"%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored."
|
||||
"%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s"
|
||||
"%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?"
|
||||
"%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate()."
|
||||
"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?"
|
||||
"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value."
|
||||
"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?"
|
||||
"%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used."
|
||||
"%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead."
|
||||
"%s is accessing findNodeHandle inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead."
|
||||
"%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead."
|
||||
"%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"
|
||||
"%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"
|
||||
"%s is not a supported value for revealOrder on <SuspenseList />. Did you mean \"together\", \"forwards\" or \"backwards\"?"
|
||||
"%s must not return anything besides a function, which is used for clean-up.%s"
|
||||
"%s objects cannot be rendered as text children. Try formatting it using toString().%s"
|
||||
"%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders."
|
||||
"%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array."
|
||||
"%s uses the legacy childContextTypes API which is no longer supported. Use React.createContext() instead."
|
||||
"%s uses the legacy contextTypes API which is no longer supported. Use React.createContext() with React.useContext() instead."
|
||||
"%s uses the legacy contextTypes API which is no longer supported. Use React.createContext() with static contextType instead."
|
||||
"%s(...) is deprecated in plain JavaScript React classes. %s"
|
||||
"%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.\n\nPlease check the code for the %s component."
|
||||
"%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s."
|
||||
"%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?"
|
||||
"%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`."
|
||||
"%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed."
|
||||
"%s(...): childContextTypes cannot be defined on a function component."
|
||||
"%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it."
|
||||
"%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead."
|
||||
"%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead."
|
||||
"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext()."
|
||||
"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined."
|
||||
"%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined."
|
||||
"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false."
|
||||
"%s.state: must be set to an object or null"
|
||||
"%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI."
|
||||
"%s: Function components do not support contextType."
|
||||
"%s: Function components do not support getDerivedStateFromProps."
|
||||
"%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly."
|
||||
"%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead."
|
||||
"%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead."
|
||||
"%s: Unsafe read of a mutable value during render.\n\nReading from a ref during render is only safe if:\n1. The ref value has not been updated, or\n2. The ref holds a lazily-initialized value that is only set once.\n"
|
||||
"%s: Unsafe write of a mutable value during render.\n\nWriting to a ref during render is only safe if the ref holds a lazily-initialized value that is only set once.\n"
|
||||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)"
|
||||
"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)"
|
||||
"%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method."
|
||||
"%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method."
|
||||
"%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method."
|
||||
"%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only."
|
||||
"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
||||
"<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements."
|
||||
"<SuspenseList tail=\"%s\" /> is only valid if revealOrder is \"forwards\" or \"backwards\". Did you mean to specify revealOrder=\"forwards\"?"
|
||||
"A button can only specify a formAction along with type=\"submit\" or no type."
|
||||
"A cache instance was released after it was already freed. This likely indicates a bug in React."
|
||||
"A cache instance was retained after it was already freed. This likely indicates a bug in React."
|
||||
"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."
|
||||
"A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"
|
||||
"A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"
|
||||
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
||||
"A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."
|
||||
"A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s."
|
||||
"A large precomputed chunk was passed to writeChunk without being copied. Large chunks get enqueued directly and are not copied. This is incompatible with precomputed chunks because you cannot enqueue the same precomputed chunk twice. Use \"cloneChunk\" to make a copy of this large precomputed chunk before writing it. This is a bug in React."
|
||||
"A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>"
|
||||
"A pointerId must be passed to \"%s\""
|
||||
"A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />"
|
||||
"A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children."
|
||||
"A single row was passed to a <SuspenseList revealOrder=\"%s\" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?"
|
||||
"A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act"
|
||||
"A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"
|
||||
"A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"
|
||||
"A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"
|
||||
"A view is reporting that a touch occurred on tag zero."
|
||||
"An empty string (\"\") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string."
|
||||
"An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string."
|
||||
"An error occurred during hydration. The server HTML was replaced with client content in <%s>."
|
||||
"An input can only specify a formAction along with type=\"submit\" or type=\"image\"."
|
||||
"An invalid container has been provided. This may indicate that another renderer is being used in addition to the test renderer. (For example, ReactDOM.createPortal inside of a ReactTestRenderer tree.) This is not supported."
|
||||
"An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."
|
||||
"An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.\n\nPlease update the following component: %s"
|
||||
"An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act"
|
||||
"Assignment to read-only property will result in a no-op: `%s`"
|
||||
"Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."
|
||||
"Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"
|
||||
"Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?"
|
||||
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component."
|
||||
"Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead."
|
||||
"Cannot call startTransition while rendering."
|
||||
"Cannot find single active touch."
|
||||
"Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."
|
||||
"Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."
|
||||
"Cannot read a Client Context from a Server Component."
|
||||
"Cannot record touch end without a touch start.\nTouch End: %s\nTouch Bank: %s"
|
||||
"Cannot record touch move without a touch start.\nTouch Move: %s\nTouch Bank: %s"
|
||||
"Cannot render <%s> outside the main document. Try moving it into the root <head> tag."
|
||||
"Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document."
|
||||
"Cannot render a <link rel=\"stylesheet\" /> outside the main document without knowing its precedence. Consider adding precedence=\"default\" or moving it into the root <head> tag."
|
||||
"Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"
|
||||
"Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."
|
||||
"Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."
|
||||
"Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."
|
||||
"Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflic with the `href` values used in any other hoisted <style> or <link rel=\"stylesheet\" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence=\"default\"` and `href=\"some unique resource identifier\"`, or move the <style> to the <style> tag."
|
||||
"Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async=\"\" or moving it into the root <head> tag."
|
||||
"Cannot specify a \"name\" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden."
|
||||
"Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden."
|
||||
"Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden."
|
||||
"Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."
|
||||
"Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."
|
||||
"Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render"
|
||||
"Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."
|
||||
"Cannot update the \"is\" prop after it has been initialized."
|
||||
"Cannot use() an already resolved Client Reference."
|
||||
"Changing the name of a tracing marker after mount is not supported. To remount the tracing marker, pass it a new key."
|
||||
"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?"
|
||||
"Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref"
|
||||
"Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref"
|
||||
"Consumer pattern is not supported by ReactServerContext"
|
||||
"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."
|
||||
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
||||
"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."
|
||||
"Did not expect a listenToNativeEvent() call for \"%s\" in the bubble phase. This is a bug in React. Please file an issue."
|
||||
"Did not expect a listenToNonDelegatedEvent() call for \"%s\". This is a bug in React. Please file an issue."
|
||||
"Did not expect server HTML to contain a <%s> in <%s>."
|
||||
"Did not expect server HTML to contain the text node \"%s\" in <%s>."
|
||||
"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."
|
||||
"Dispatching inst must not be null"
|
||||
"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"
|
||||
"Each child in a list should have a unique \"key\" prop. See https://reactjs.org/link/warning-keys for more information."
|
||||
"Each child in a list should have a unique \"key\" prop.%s%s See https://reactjs.org/link/warning-keys for more information."
|
||||
"Encountered a script tag while rendering React component. Scripts inside React components are never executed when rendering on the client. Consider using template tag instead (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template)."
|
||||
"Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version."
|
||||
"Ended a touch event which was not counted in `trackedTouchCount`."
|
||||
"Error parsing %s %s"
|
||||
"EventPluginUtils.setComponentTree(...): Injected module is missing getNodeFromInstance or getInstanceFromNode."
|
||||
"EventPluginUtils: Invalid `event`."
|
||||
"EventRegistry: More than one plugin attempted to publish the same registration name, `%s`."
|
||||
"Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue."
|
||||
"Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue."
|
||||
"Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue."
|
||||
"Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue."
|
||||
"Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue."
|
||||
"Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue."
|
||||
"Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue."
|
||||
"Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue."
|
||||
"Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead."
|
||||
"Expected `%s` listener to be a function, instead got a value of `%s` type."
|
||||
"Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested."
|
||||
"Expected an empty stack. Something was not reset properly."
|
||||
"Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."
|
||||
"Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."
|
||||
"Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."
|
||||
"Expected server HTML to contain a matching <%s> in <%s>."
|
||||
"Expected server HTML to contain a matching text node for \"%s\" in <%s>."
|
||||
"Expected to be hydrating. This is a bug in React. Please file an issue."
|
||||
"Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."
|
||||
"Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue."
|
||||
"Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s."
|
||||
"Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s."
|
||||
"Extra attributes from the server: %s"
|
||||
"Factory.type is deprecated. Access the class directly before passing it to createFactory."
|
||||
"Failed %s type: %s"
|
||||
"Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here."
|
||||
"Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s"
|
||||
"Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it."
|
||||
"Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"Internal React Error: React expected bootstrap script or module with src \"%s\" to not have been preloaded already. please file an issue"
|
||||
"Internal React error: A listener was unexpectedly attached to a \"noop\" thenable. This is a bug in React. Please file an issue."
|
||||
"Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s"
|
||||
"Internal React error: Expected static flag was missing. Please notify the React team."
|
||||
"Internal React error: Expected this fiber to be complete, but it isn't. It should have been unwound. This is a bug in React."
|
||||
"Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."
|
||||
"Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase."
|
||||
"Invalid ARIA attribute `%s`. Did you mean `%s`?"
|
||||
"Invalid DOM property `%s`. Did you mean `%s`?"
|
||||
"Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props"
|
||||
"Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props"
|
||||
"Invalid attribute `ref` supplied to `React.Fragment`."
|
||||
"Invalid attribute name: `%s`"
|
||||
"Invalid event handler property `%s`. Did you mean `%s`?"
|
||||
"Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`."
|
||||
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."
|
||||
"Invalid key type. Expected a string, number, symbol, or boolean, but instead received: %s\n\nTo use non-primitive values as keys, you must pass a hash function as the second argument to createResource()."
|
||||
"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props."
|
||||
"Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior "
|
||||
"Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior "
|
||||
"It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs."
|
||||
"Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context"
|
||||
"Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."
|
||||
"Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)"
|
||||
"Only createServerContext is supported in Server Components."
|
||||
"Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s"
|
||||
"Only plain objects can be passed to Client Components from Server Components. Classes or other objects with methods are not supported.%s"
|
||||
"Only plain objects can be passed to Client Components from Server Components. Objects with symbol properties like %s are not supported.%s"
|
||||
"Only plain objects can be passed to Client Components from Server Components. Objects with toJSON methods are not supported. Convert it manually to a simple value before passing it to props.%s"
|
||||
"Only plain objects can be passed to Server Functions from the Client. %s objects are not supported.%s"
|
||||
"Only plain objects can be passed to Server Functions from the Client. Classes or other objects with methods are not supported.%s"
|
||||
"Only plain objects can be passed to Server Functions from the Client. Objects with symbol properties like %s are not supported.%s"
|
||||
"Only plain objects can be passed to Server Functions from the Client. Objects with toJSON methods are not supported. Convert it manually to a simple value before passing it to props.%s"
|
||||
"Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."
|
||||
"Popping the context provider did not return back to the original snapshot. This is a bug in React."
|
||||
"Profiler must specify an \"id\" of type `string` as a prop. Received the type `%s` instead."
|
||||
"Prop `%s` did not match. Server: %s Client: %s"
|
||||
"React Context Providers cannot be passed to Server Functions from the Client.%s"
|
||||
"React Element cannot be passed to Server Functions from the Client.%s"
|
||||
"React Lazy cannot be passed to Server Functions from the Client.%s"
|
||||
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
||||
"React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element."
|
||||
"React elements are not allowed in ServerContext"
|
||||
"React encountered a <link rel=\"stylesheet\" href=\"%s\" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop."
|
||||
"React encountered a `<link rel=\"stylesheet\" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop."
|
||||
"React encountered a `<link rel=\"stylesheet\" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop."
|
||||
"React encountered a `<link rel=\"stylesheet\" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop."
|
||||
"React encountered a hoistable style tag for the same href as a preload: \"%s\". When using a style tag to inline styles you should not also preload it as a stylsheet."
|
||||
"React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children."
|
||||
"React expect children of <title> tags to be a string, number, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value."
|
||||
"React expected a positive non-zero `maxHeadersLength` option but found %s instead. When using the `onHeaders` option you may supply an optional `maxHeadersLength` option as well however, when setting this value to zero or less no headers will be captured."
|
||||
"React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is \"%s\"."
|
||||
"React expected to have at least one href for an a hoistable style but found none. This is a bug in React."
|
||||
"React expects the `children` prop of <title> tags to be a string, number, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be commong to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>."
|
||||
"React expects the `children` prop of <title> tags to be a string, number, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML."
|
||||
"React expects the `children` prop of <title> tags to be a string, number, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>."
|
||||
"React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"
|
||||
"React instrumentation encountered an error: %s"
|
||||
"React instrumentation encountered an error: %s."
|
||||
"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."
|
||||
"React was unable to patch the fetch() function in this environment. Suspensey APIs might not work correctly as a result."
|
||||
"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s"
|
||||
"React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead."
|
||||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
||||
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s"
|
||||
"React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."
|
||||
"React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."
|
||||
"ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"
|
||||
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead."
|
||||
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead."
|
||||
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string."
|
||||
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`."
|
||||
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`."
|
||||
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead."
|
||||
"ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are \"style\" and \"script\"."
|
||||
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead."
|
||||
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead."
|
||||
"ReactDOM.preinitModule(): Currently the only supported \"as\" type for this function is \"script\" but received \"%s\" instead. This warning was generated for `href` \"%s\". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)"
|
||||
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s"
|
||||
"ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel=\"preload\" as=\"...\" />` tag.%s"
|
||||
"ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel=\"modulepreload\" as=\"...\" />` tag.%s"
|
||||
"ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"
|
||||
"ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"
|
||||
"ReactTestUtils.mockComponent() is deprecated. Use shallow rendering or jest.mock() instead.\n\nSee https://reactjs.org/link/test-utils-mock-component for more information."
|
||||
"Received NaN for the `%s` attribute. If this is expected, cast the value to a string."
|
||||
"Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}."
|
||||
"Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead."
|
||||
"Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string."
|
||||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
||||
"Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?"
|
||||
"Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s."
|
||||
"Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"
|
||||
"Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?"
|
||||
"Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"
|
||||
"Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"
|
||||
"Server Context is deprecated and will soon be removed. It was never documented and we have found it not to be useful enough to warrant the downside it imposes on all apps."
|
||||
"ServerContext can only have a value prop and children. Found: %s"
|
||||
"Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'."
|
||||
"Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s."
|
||||
"Should have found matching lanes. This is a bug in React."
|
||||
"State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."
|
||||
"Style property values shouldn't contain a semicolon. Try \"%s: %s\" instead."
|
||||
"Text content did not match. Server: \"%s\" Client: \"%s\""
|
||||
"Text strings must be rendered within a <Text> component."
|
||||
"Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"
|
||||
"The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React."
|
||||
"The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead."
|
||||
"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false."
|
||||
"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s"
|
||||
"The `%s` prop supplied to <select> must be an array if `multiple` is true."
|
||||
"The `%s` prop supplied to <select> must be an array if `multiple` is true.%s"
|
||||
"The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."
|
||||
"The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"
|
||||
"The current testing environment is not configured to support act(...)"
|
||||
"The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s"
|
||||
"The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"
|
||||
"The main 'use-sync-external-store' entry point is not supported; all it does is re-export useSyncExternalStore from the 'react' package, so it only works with React 18+.\n\nIf you wish to support React 16 and 17, import from 'use-sync-external-store/shim' instead. It will fall back to a shimmed implementation when the native one is not available.\n\nIf you only support React 18+, you can import directly from 'react'."
|
||||
"The parent context is not the expected context. This is probably a bug in React."
|
||||
"The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here."
|
||||
"The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here."
|
||||
"The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here."
|
||||
"The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here."
|
||||
"The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before using it here."
|
||||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here."
|
||||
"The result of getServerSnapshot should be cached to avoid an infinite loop"
|
||||
"The result of getSnapshot should be cached to avoid an infinite loop"
|
||||
"The seed argument is not enabled outside experimental channels."
|
||||
"The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter."
|
||||
"There was still abortable task at the root when we closed. This is a bug in React."
|
||||
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
||||
"This synthetic event is reused for performance reasons. If you're seeing this, you're %s `%s` on a released/nullified synthetic event. %s. If you must keep the original synthetic event around, use event.persist(). See https://reactjs.org/link/event-pooling for more information."
|
||||
"Touch identifier %s is greater than maximum supported %s which causes performance issues backfilling array locations for all of the indices."
|
||||
"Touch with identifier %s already exists. Did not record touch start."
|
||||
"Touch with identifier %s does not exist. Cannot record touch end without a touch start."
|
||||
"Touch with identifier %s does not exist. Cannot record touch move without a touch start."
|
||||
"Unexpected Fiber popped."
|
||||
"Unexpected pop."
|
||||
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef()."
|
||||
"Unexpected return value from a callback ref in %s. A callback ref should not return a function."
|
||||
"Unexpected type for suspenseCallback."
|
||||
"Unexpected type of fiber triggered a suspensey commit. This is a bug in React."
|
||||
"Unexpectedly popped too many stack frames. This is a bug in React."
|
||||
"Unknown ARIA attribute `%s`. Did you mean `%s`?"
|
||||
"Unknown event handler property `%s`. It will be ignored."
|
||||
"Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://reactjs.org/link/unsafe-component-lifecycles"
|
||||
"Unsupported style property %s. Did you mean %s?"
|
||||
"Unsupported vendor-prefixed style property %s. Did you mean %s?"
|
||||
"Use the `defaultValue` or `value` props instead of setting children on <textarea>."
|
||||
"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."
|
||||
"Using 'dangerouslySetInnerHTML' in an svg element with Trusted Types enabled in an Internet Explorer will cause the trusted value to be converted to string. Assigning string to 'innerHTML' will throw an error if Trusted Types are enforced. You can try to wrap your svg element inside a div and use 'dangerouslySetInnerHTML' on the enclosing div instead."
|
||||
"Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."
|
||||
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
||||
"Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s"
|
||||
"Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n\nPlease update the following components: %s"
|
||||
"Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s"
|
||||
"Warning: ref.measureLayout must be called with a node handle or a ref to a native component."
|
||||
"We should not be hydrating here. This is a bug in React. Please file a bug."
|
||||
"You are accessing \"digest\" from the errorInfo object passed to onRecoverableError. This property is deprecated and will be removed in a future version of React. To access the digest of an Error look for this property on the Error instance itself."
|
||||
"You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?"
|
||||
"You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?"
|
||||
"You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?"
|
||||
"You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."
|
||||
"You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."
|
||||
"You are importing createRoot from \"react-dom\" which is not supported. You should instead import it from \"react-dom/client\"."
|
||||
"You are importing hydrateRoot from \"react-dom\" which is not supported. You should instead import it from \"react-dom/client\"."
|
||||
"You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first."
|
||||
"You are setting the style `{ %s: ... }` as a prop. You should nest it in a style object. E.g. `{ style: { %s: ... } }`"
|
||||
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
||||
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
||||
"You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."
|
||||
"You can only pass the action prop to <form>."
|
||||
"You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."
|
||||
"You can only pass the formAction prop to <input> or <button>."
|
||||
"You did not run Node.js with the `--conditions react-server` flag. Any \"react-server\" override will only work with ESM imports."
|
||||
"You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n let root = createRoot(domContainer);\n root.render(<App />);"
|
||||
"You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."
|
||||
"You passed a second argument to root.render(...) but it only accepts one argument."
|
||||
"You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`."
|
||||
"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."
|
||||
"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."
|
||||
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
||||
"\"%s\" is not a supported revealOrder on <SuspenseList />. Did you mean \"together\", \"forwards\" or \"backwards\"?"
|
||||
"\"%s\" is not a supported value for tail on <SuspenseList />. Did you mean \"collapsed\" or \"hidden\"?"
|
||||
"\"%s\" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use \"%ss\" instead."
|
||||
"\"%s\" is not a valid value for revealOrder on <SuspenseList />. Use lowercase \"%s\" instead."
|
||||
"`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape."
|
||||
"`Infinity` is an invalid value for the `%s` css style property."
|
||||
"`NaN` is an invalid value for the `%s` css style property."
|
||||
"`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary."
|
||||
"`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components."
|
||||
"`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components."
|
||||
"acquireSingletonInstance was called with an element type that is not supported. This is a bug in React."
|
||||
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
||||
"componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.\n\nPlease update the following components: %s"
|
||||
"componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s"
|
||||
"componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s"
|
||||
"componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s"
|
||||
"contextType was defined as an instance property on %s. Use a static property to define contextType instead."
|
||||
"contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead."
|
||||
"copyWithRename() expects paths of the same length"
|
||||
"copyWithRename() expects paths to be the same except for the deepest key"
|
||||
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
||||
"dispatchCommand was called with a ref that isn't a native component. Use React.forwardRef to get access to the underlying native component"
|
||||
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
||||
"forwardRef render functions accept exactly two parameters: props and ref. %s"
|
||||
"forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"
|
||||
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
||||
"forwardRef requires a render function but was given %s."
|
||||
"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."
|
||||
"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead."
|
||||
"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?"
|
||||
"getInspectorDataForViewAtPoint expects to receive a host component"
|
||||
"hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."
|
||||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))"
|
||||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?"
|
||||
"memo: The first argument must be a component. Instead received: %s"
|
||||
"propTypes was defined as an instance property on %s. Use a static property to define propTypes instead."
|
||||
"render(...): Expected the last optional `callback` argument to be a function. Instead received: %s."
|
||||
"render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container."
|
||||
"render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."
|
||||
"render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."
|
||||
"renderToNodeStream is deprecated. Use renderToPipeableStream instead."
|
||||
"root.finishedLanes should not be empty during a commit. This is a bug in React."
|
||||
"sendAccessibilityEvent was called with a ref that isn't a native component. Use React.forwardRef to get access to the underlying native component"
|
||||
"unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."
|
||||
"unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s"
|
||||
"unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React."
|
||||
"useFormState is now in canary. Remove the experimental_ prefix. The prefixed alias will be removed in an upcoming release."
|
||||
"useFormStatus is now in canary. Remove the experimental_ prefix. The prefixed alias will be removed in an upcoming release."
|
||||
"useInsertionEffect must not schedule updates."
|
||||
"useOptimistic is now in canary. Remove the experimental_ prefix. The prefixed alias will be removed in an upcoming release."
|
||||
"validateDOMNesting(...): %s cannot appear as a child of <%s>.%s"
|
||||
"validateDOMNesting(...): %s cannot appear as a descendant of <%s>."
|
||||
"validateDOMNesting(...): Text nodes cannot appear as a child of <%s>."
|
||||
"validateDOMNesting(...): Whitespace text nodes cannot appear as a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code."
|
||||
Reference in New Issue
Block a user