RamiAwar / dataline

Chat with your data - AI data analysis and visualization on CSV, Postgres, MySQL, Snowflake, SQLite...
https://dataline.app
GNU General Public License v3.0
502 stars 49 forks source link

Fix headlessui upgrade (migrate to v2) #258

Closed anthony2261 closed 1 month ago

anthony2261 commented 1 month ago

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.