rabbit_rabbitR
Deno3y ago
3 replies
rabbit_rabbit

@headlessui/react + Fresh

I'm trying to use preact/compat to leverage @headlessui/react, but running into

In the "imports" of my
deno.json
I have
    "@headlessui/react": "https://esm.sh/@headlessui/react@1.7.17?alias=react:preact/compat,react-dom:preact/compat,@types/react:preact/compat&deps=preact@10.19.2",
    "react": "https://esm.sh/preact@10.19.2/compat"


The input renders, and fires the callback, but something about the useState seems off as I see some minified property is not a function, as in the attached image.

Here is my implementation of the component: https://github.com/will-weiss/fresh-headlessui-repro/blob/main/islands/Combo.tsx

And the full repository: https://github.com/will-weiss/fresh-headlessui-repro

Thanks in advance!
GitHub
Minimal Repro trying to get a combobox to be used. Contribute to will-weiss/fresh-headlessui-repro development by creating an account on GitHub.
fresh-headlessui-repro/islands/Combo.tsx at main · will-weiss/fresh...
GitHub
Minimal Repro trying to get a combobox to be used. Contribute to will-weiss/fresh-headlessui-repro development by creating an account on GitHub.
GitHub - will-weiss/fresh-headlessui-repro: Minimal Repro trying to...
Was this page helpful?