addComponentAsRefTo
See original GitHub issueIt seems like google map react is attempting to use another version of React. I’m getting the following error:
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
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
addComponentAsRefTo Invariant Violation · GitHub
You have multiple (conflicting) copies of React loaded (eg. due to a miss-configured NPM dependency). Invalid Refs. Only a ReactOwner can have refs....
Read more >React ref not working Invariant Violation - Stack Overflow
invariant.js:39Uncaught Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a ...
Read more >Refs Must Have Owner Warning - React
addComponentAsRefTo (…): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a...
Read more >Fixing the Jest Error, "Invariant Violation
Jest sometimes fails with an error, "Invariant Violation: addComponentAsRefTo". This how-to discusses a solution for the error & speculates ...
Read more >`Error: Invariant Violation: addComponentAsRefTo(...): Only a ...
Coding example for the question Testing: `Error: Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs.` error-Reactjs.
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
@istarkov I see I’ve pasted the wrong output 😃 I am also experiencing the
addComponentAsRefTo
error, will try to isolate and get back to you.This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.