Open michalstrzelecki opened 2 years ago
I second this
Is this fixed? For me it works along React 18
.
Is this fixed? For me it works along
React 18
.
@AndreasFaust how did you make it work?
Add to package.json
"overrides": {
"react-share": {
"react": "18.0.0",
"react-dom": "18.0.0"
}
}
I'm using react 18.1.0 and still don't work after overriding as suggested above. Tried the following as well, no luck :(
"overrides": {
"react": "18.1.0",
"react-dom": "18.1.0"
},
@rossm6 it worked thanks! @zumek you need to specify that the overrides are for react-share, so it should be
...,
"overrides": {
"react-share": { <---- this is what you're missing!
"react": "18.1.0",
"react-dom": "18.1.0"
}
},
@rossm6 thanks but, I tried that and it didn't work. So I tried the global override option, which doesn't work either for some reason.
Thanks, works for me
npm update
gives:Please, add react to
peerDependecies
as:I can not use this package in a project that includes react 18.