question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught Error: Element ref was specified as a string (message) but no owner was set

See original GitHub issue

Hi,

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? screenshot screenshot2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
emregudurcommented, Mar 9, 2022

Hi guys, this problem fixed on the new version. Checkout here pls click

1reaction
emregudurcommented, Feb 25, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found