-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Element ref was specified as a string (value0) but no owner was set. You may have multiple copies of React loaded. (details: https://fb.me/react-refs-must-have-owner) #2025
Comments
check this one: |
Same error is occurring for me. Any solutions yet? |
@bring2dip I abandon this package and code a select component for my project with same interface. |
@AnnatarHe Can you share your code with me? |
@AnnatarHe i have used it with redux-form so it is a bit difficult for me to implement it in your way. Looks like i have to wait for this issue to be solved. |
@bring2dip Sadly.😭 |
I have the same problem !! |
Im seeing this error as well, but only when testing with enzyme/mocha... |
I finally resolved this by making an edit in my webpack setup to specifically state where to use the required version of react. Something similar to the following, with an alteration to the node modules path, will hopefully help some people:
|
@knoxjeffrey Thank you! Alias works for me. Noticed that to be a pattern for monorepo setup which involves multiple components referencing same libraries |
@knoxjeffrey solved my problem, thank you. |
For others running into this issue where the webpack alias or reinstalling We had an implementation where JSX was being stored in Redux and then rendered as a child from another connected component (a Modal in our case). In this case React is not aware of the child JSX as I guess it was not explicitly passed as a prop. So the |
In my case, simply upgrading |
Still seeing this error even after updating to 16.2.0 for both react and react-dom.... |
Another possible solution is to use
And if you don't use multiple values ( |
@seelts you just solved a nightmare problem I've been dealing with for almost a year. When using 1000x thanks! |
You are welcome. By saying «native form submitting» I mean the way how browsers and servers usually handle several inputs with the same name. So, what I've described above, is the default way how But if you will enable https://github.com/JedWatson/react-select/blob/master/src/Select.js#L1045-L1069
|
@seelts thank you very much! |
See this thread for more info: JedWatson/react-select#2025
Hello - In an effort to sustain the We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our efforts towards the current major version. If you aren't using the latest version of However, if you feel this issue is still relevant and you'd like us to review it - please leave a comment and we'll do our best to get back to you! |
Are you asking a question?
No, just a proposal
Are you reporting a bug or runtime error?
Yes. all error just after I upgrade react to version 16.
Element ref was specified as a string (value0) but no owner was set. You may have multiple copies of React loaded. (details: https://fb.me/react-refs-must-have-owner).
My code is here:
and I review this repo, notice this line may occur this error:
in src/Select Line 929
React 16,
React-Select 1.0.0-rc.10
The text was updated successfully, but these errors were encountered: