Skip to content
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

update-to-react-17 #117

Conversation

JacquesBosman
Copy link

#80
Issues
Many people are having issues with react-sortable-tree after upgrading to React 17. It looks like the cause is using findDOMNode and mismatched React versions due to a peer dependency issue. This PR should resolve the issues.

facebook/react#20131 (comment)
frontend-collective/react-sortable-tree#821
frontend-collective/react-sortable-tree#450
frontend-collective/react-sortable-tree#281 (comment)
#70

Test steps
yarn
yarn build
in the react-sortable-tree repo
yarn add file:$PATH_TO_THIS_REPO/lib
add in some yarn resolutions in package.json so storybook will use React 17
"resolutions": {
"react": "^17.0.1",
"react-dom": "^17.0.1"
}
yarn storybook
test around make sure nothing is broken

@JacquesBosman JacquesBosman deleted the chore/update-to-react-17 branch May 17, 2022 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant