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.

Error: addComponentAsRefTo(...)

See original GitHub issue

Hi!

After a long search I found this nice file browser. When I try to include it into my project the following error occures: Uncaught Error: 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://fb.me/react-refs-must-have-owner).

Maybe I used the component in the wrong way. I checked if react was loaded multiple times, but I was not successful. All other workarounds like “npm ls” did not work either .

I would be really thankful for any help!

Greetz

Stefan

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jonjomckaycommented, Aug 28, 2017

@sichvoge this isn’t my repository 😃 releasing a new version is something that’s up to @bor3ham or @aidanlister I presume

1reaction
sichvogecommented, Aug 16, 2017

@jonjomckay any plans to release it on npm? unfortunately, there is no dist folder so that it will work to reference the github repo in package.json

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
Uncaught Error: Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not...
Read more >
reactjs - addComponentAsRefTo error when using component ...
I do a nmp link in the storybook in order to use it in my project. I can see the component, but it...
Read more >
Developers - Error: addComponentAsRefTo(...): Only a ReactOwner ...
Error : addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside...
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 Decoder - React - Meta Open Source
The full text of the error you just encountered is: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref...
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