Uncaught Error: Element ref was specified as a string (message) but no owner was set
See original GitHub issueHi,
I get the following error when trying to use MessageList from documentation (note: even without any change from documentation)
react-dom.development.js:13218 Uncaught Error: Element ref was specified as a string (message) but no owner was set. This could happen for one of the following reasons:
1. You may be adding a ref to a function component
2. You may be adding a ref to a component that was not created inside a component's render method
3. You have multiple copies of React loaded
See https://reactjs.org/link/refs-must-have-owner for more information.
at coerceRef (react-dom.development.js:13218)
at reconcileSingleElement (react-dom.development.js:14054)
at reconcileChildFibers (react-dom.development.js:14112)
at reconcileChildren (react-dom.development.js:16990)
at finishClassComponent (react-dom.development.js:17511)
at updateClassComponent (react-dom.development.js:17435)
at beginWork (react-dom.development.js:19073)
at HTMLUnknownElement.callCallback (react-dom.development.js:3945)
at Object.invokeGuardedCallbackDev (react-dom.development.js:3994)
at invokeGuardedCallback (react-dom.development.js:4056)
Anyone got any fix for this?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Element ref was specified as a string (map) but no owner was ...
I have updated my project to React 16.3.1 and now I get this error: Uncaught ...
Read more >"Element ref was specified as a string (series0) but no owner ...
Element ref was specified as a string (scrollbar) but no owner was set. This could happen for one of the following reasons: 1....
Read more >Refs Must Have Owner Warning - React
Element ref was specified as a string (myRefName) but no owner was set. You may have multiple copies of React loaded. (details: https://fb.me/react-refs-must- ......
Read more >Uncaught Error: Element ref was specified as a string (editor ...
[Solved]-Uncaught Error: Element ref was specified as a string (editor) but no owner was set-React Native · Related Query · More Query from...
Read more >Refs to Components | React
render #. Not to be confused with the render() function that you define on your component (and which returns a virtual DOM element),...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi guys, this problem fixed on the new version. Checkout here pls click
Hi, we tried to change components on react-chat-elements and you can see here.
We works on this problem and as soon as possible aim to fix this problem.