-
Notifications
You must be signed in to change notification settings - Fork 263
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
Invariant Violation: addComponentAsRefTo #7
Comments
Fixed in #9. |
I'm getting this error with React 0.14.7 and react-codemirror 0.2.5 |
Any update on this? |
See https://gist.github.com/jimfb/4faa6cbfb1ef476bd105 for some of the fixes that have worked for other people. In my case, I had to make react external in webpack. |
timsuchanek
added a commit
to timsuchanek/react-codemirror
that referenced
this issue
Jan 31, 2017
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've put
react-codemirror
to my project just almost the same as it described in example:and got next error:
Uncaught Error: Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. This usually means that you're trying to add a ref to a component that doesn't have an owner (that is, was not created inside of another component's
render
method). Try rendering this component inside of a new top-level component which will hold the ref.The text was updated successfully, but these errors were encountered: