-
Notifications
You must be signed in to change notification settings - Fork 834
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
Support for incompatible React #8
Comments
Could I see a snippet of how you’re trying to use it? |
I am getting the same error with React 15.3.0. |
Any chance I can see how you’re importing/using the library? Thanks! |
Basically I am just trying that in the empty component, so nothing fancy
I can try that in some clean project to rule out it's not for example issue with the node modules in my current project |
It does look good. There’s a chance that it’s because you have multiple versions of React installed locally. You could either |
I had this same issue. I didn't have 2 reacts installed, however, It turned out that the culprit was that I had configured ProvidePlugin on webpack, like so: plugins: [
new webpack.ProvidePlugin({
React: 'react'
})
] so it would see both import Picker from 'emoji-mart/src/components/picker'; on webpack.config: loaders: [...,
{
test: /\.js$/,
include: [
path.join(__dirname, 'src'),
path.join(__dirname, 'node_modules', 'emoji-mart')
],
loader: 'babel-loader'
},
] |
I am facing the same problem. Any update for this ?. I really liked this library and wanted to use it in my project. I don't have duplicate react js version still I have tried rm -rf node_moduels and reinstalling it still no luck. Just adding simple one line in my project And it is showing the above error. |
Do you also use |
Thanks for fixing it now it's working superb. No I was not using the ProvidePlugin. |
Today, i add emoji-mart to my project. I get the conflict React with following message:
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).
What should i do to resolve this problem?
Thanks you so much!
The text was updated successfully, but these errors were encountered: