This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
When I run bb dev
, I get this warning: Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest
. But when I try to run the command, it says update-browserslist-db: Cannot find package.json. Is this the right directory to run npx update-browserslist-db
How to update this?
I think this comes from the tailwind, which normally is an npm dependency but in this case is by default a packaged binary. you could try deleting bin/tailwindcss
which will trigger a fresh install next time you run bb dev
, and see if the latest version still gives that message?
in any case, I always just ignore that message 🤷
Deleting the tailwind file did the trick. Thanks.
I am trying to build a simple but professional contact form. I got a bit lost in trying to understand the biff form component, from example code, and started again with a simple htmx pattern from the docs. I was able to successfully demo the request/response model and send emails via server code using postmark api 🎉. I will double back and examine the supplied code. Still need to re-integrate the captcha. Is there any other code I should be looking at? What is a best practice for form validation. It seems pretty natural to do it server side. But probably necessary to do it client side as well? Does Biff cover this or are people using libraries, or thier own js-oriented patterns? Right now this is a form that is public, and not leveraging the default auth system.
Here’s an example of my (naive) validation logic. https://github.com/chromalchemy/groundedsol/blob/22fa4765f3ef64a2e4dbd37567b4c3b4ab82e977/src/gs/groundedsol/home.clj#L80C3-L80C4 (code is messy, in flux)
repo public now
yep, that's basically how I do form validation too--nothing fancy so far. server side is fine, and idiomatic for htmx. adding captcha should be all you need.