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

Fix headlessui upgrade (migrate to v2) #258

Merged
merged 1 commit into from
Jul 14, 2024
Merged

Conversation

anthony2261
Copy link
Collaborator

@anthony2261 anthony2261 commented Jul 14, 2024

After reading the steps here and reading the error log, I found the transitions that were being rendered as Fragments (default) and had more than one child.
Only one Transition element fit this description, so I made it have a single child instead of two (the second child didn't need to be in the transition), and it worked. For the Transitions that had className, I just added as="div" and it worked, no more TS error.

Some other changes involve deprecated items, eg. using TransitionChild instead of Transition.Child.

@anthony2261 anthony2261 merged commit a5f793c into main Jul 14, 2024
4 checks passed
@anthony2261 anthony2261 deleted the fix/headlessui-migrate-v2 branch July 14, 2024 17:42
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.

2 participants