rgossiaux / svelte-headlessui

Unofficial Svelte port of the Headless UI component library
https://svelte-headlessui.goss.io
MIT License
1.79k stars 97 forks source link

Support for Svelte 4 or Svelte 5 #182

Open msdrigg opened 1 month ago

msdrigg commented 1 month ago

Describe the bug This library doesn't support Svelte 4 or 5 because it imports get_current_component from svelte/internal which is a warning in svelte 4 and a hard error in svelte 5. There is no clear workaround for using this import in svelte 5 https://github.com/sveltejs/svelte/issues/9189

To Reproduce Any repo with svelte 5 and svelte-headless

Library version Add the version of svelte-headlessui that you are using here: Latest on NPM