Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on render #10

Open
yaplas opened this issue Feb 11, 2017 · 2 comments
Open

Error on render #10

yaplas opened this issue Feb 11, 2017 · 2 comments

Comments

@yaplas
Copy link

yaplas commented Feb 11, 2017

invariant.js:44 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).

@yaplas
Copy link
Author

yaplas commented Feb 11, 2017

I dont know what is happening, but seems to be a problem when the router put and remove the component that host the MapChoropleth

@m0neysha
Copy link

m0neysha commented Feb 28, 2017

@yaplas I also had this issue w/ two copies of Reacts being loaded. I solved this issue by deleting the duplicated react folder in node_modules/react-d3-map-core/node_modules/ in my proj dir. I followed the Two Reacts Won't be Friends section in this article to find where the duplicate react folder was. Hope this helps! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants