Open nanikit opened 2 months ago
@nanikit have you tried this - https://esm.sh/@headlessui/react@latest?alias=react:preact/compat,react-dom:preact/compat,@types/react:preact/compat
I just tried and it didn't work.
I also have tried importing headlessui with npm dependency and preact, and found it is not designed to be used with preact. preact compat is not complete.
@nanikit strange as it works just fine inside the Fresh.deno framework which uses preact. Might have to test it out later
Background
I tried using
@headlessui/react
with deno lsp like the following and noticed lsp didn't work.Steps to reproduce
Expected behavior
I can go to type definition of
Combobox
.Actual behavior
Actually the content of https://esm.sh/v135/client-only@0.0.1/index.d.ts is
Types not found
.