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
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!4 replies
InvalidData: No certificates found in cert file
Hello! Following up from a previous help post here,
https://discord.com/channels/684898665143206084/1182742873670701078
I had been running against
serveTls
with these .crt and .key files, but now I'm seeing
My fresh.config.ts
ends like this
While my dev.ts
file looks like this
Even if I try to make a new cert via
I see the same issue.
I'm running with the following prefix in both cases
Any help is appreciated!9 replies
Fresh migrating from serveTls
In my
main.ts
file for Fresh I have some code I borrowed from source a few minor versions ago to serve HTTPS content when running on localhost. It looks like so
This is working, but serveTls
is marked deprecated in favor of Deno.serve
. However, Deno.serve
takes a single handler argument, not a handler and a config.
How might I go about migrating to Deno.serve
here? Thanks!5 replies
positional arguments deno task
Can I use positional arguments in deno task?
I have a number of scripts that I frequently want to run commands against both a dev and test database. I currently control which I'm connecting to via an environment variable. So where I'd normally do
I want to write
My attempt looks like so
But the positional argument seems to just get appended on the end without interpolation
Is this possible? Should I rethink this?
Thanks in advance!
3 replies
peer tailwind support in fresh
Is there support for tailwind
peer
s as described here in fresh? https://tailwindcss.com/docs/hover-focus-and-other-states
I've uploaded a repo with code like so
And when I focus on the input the styles of the div do not change. I see that peer
support was added in v3 and only group
is supported in v2. Is Fresh still on v2? https://v2.tailwindcss.com/docs/hover-focus-and-other-states#group-hover
Thanks in advance!
https://github.com/will-weiss/fresh-twind-peer-test4 replies
compiled artifact can't find deno.json
I'm using github actions to build and publish a binary like so
After downloading and unzipping the binary I noticed I have to add
chmod +x web
which is fine, but then I see
even if I'm running in a directory with a deno.json file.
I'm running deno 1.37.0
Thanks in advance!5 replies
Tailwind nonfunctional on fresh-update from 1.3.1 -> 1.4.3
After running
deno run -A -r https://fresh.deno.dev/update .
on my project, the tailwind styles don't appear functional.
My imports section looks like so
Any ideas what might be going on? Thanks in advance!5 replies
assertEquals deprecated in vscode?
Since upgrading to std@0.202.0 I'm seeing that assertEquals is marked deprecated, but I can't see why. It seems @Xiphoris saw the same issue here https://discord.com/channels/684898665143206084/684898665151594506/1152687831844659360
14 replies
Leave TLS connection open in between tests
When I have 2 tests that use a database connection and attempt to close the connection
afterAll
the tests, the first fails because there's an open tls connection. Is it possible to leave the connection is open at the end of the first test?
results in
Thanks in advance!3 replies
In browser video chat client & server
Hello! How might people go about architecting an in-browser video chat client & server, specifically wanting to stream the client's camera feed to a server I'm hosting.
On the client side it seems I can use https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia to get the camera and audio streams. How do I go about piping those streams to the server in a performant way? Unless I'm totally off base, there isn't an in-browser API to send arbitrary UDP packets https://gafferongames.com/post/why_cant_i_send_udp_packets_from_a_browser/, so are websockets the best option here?
On the server side are there good libraries to receive packets with video & audio data and relay them onto another client?
If it helps, other specs are that this will be deployed in a low-bandwidth setting (Zimbabwe specifically). Expectations around video quality will be low, so even going to 144p super grainy video is ok. Frankly, if we could reliably capture audio data, that's most important.
Thanks so much in advance!
4 replies
Provide own default error page in Fresh
Hello! I'm seeing the following error
Can I provide my own default error page instead of this one to sidestep this error? I tried making such a page at
routes/default_error_page.tsx
, but that didn't work
Something that could be related, but that I'm confused about is that this refers to fresh@1.0.1
when my import_map.json
specifies fresh@1.1.4
Any ideas? Thanks in advance!58 replies