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

Only a ReactOwner can have Refs #13

Open
0xcaff opened this issue Sep 1, 2017 · 0 comments
Open

Only a ReactOwner can have Refs #13

0xcaff opened this issue Sep 1, 2017 · 0 comments

Comments

@0xcaff
Copy link

0xcaff commented Sep 1, 2017

When I import and use react-picture-show, I get the following 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).

This happens in chrome but not in firefox. I'm using yarn as my package manager.

@0xcaff 0xcaff changed the title React Should be A peerDependency Only a ReactOwner can have Refs Sep 1, 2017
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

1 participant