React 17
juanca opened this issue ยท 2 comments
Is your feature request related to a problem? Please describe.
I cannot upgrade to React 17 when using PivotalUI components in my codebase. Our test suite (which uses Enzyme) fails on components using PivotalUI components. e.g. OverlayTrigger
Note: there is a high likelihood that Enzyme just doesn't play well when there are varying React version in-play. But that's for another repo/issue.
Describe the solution you'd like
- Remove
react
from thedependencies
list (it is already listed underpeerDependencies
) - Add
react
to thedevDependencies
list (it is already listed underpeerDependencies
) - Try out React 17 and (assuming it will pass) add
^17
to thereact
semver underpeerDependencies
Describe alternatives you've considered
If it is broken, then that's all right. But I would highly encourage at least cleaning up dependencies
<=> peerDependencies
.
Additional context
Thanks for the issue! I agree that this makes sense, but unfortunately I'm not sure when we'll have time to prioritize this.
In the meantime, if you're using Yarn, I wonder if something like this would work (in your package.json
):
"resolutions": {
"pivotal-ui/react": "16.8",
"pivotal-ui/react-dom": "16.8",
"pivotal-ui/pui-react-animation/react": "16.8"
},
(using whichever version of React you'd like)
Everything seems to be working as expected with the resolutions. ๐ Thanks for the hotfix.