biff

Lawrence 2025-01-27T02:07:19.786759Z

Just running through the tutorial and I am running into some sort of problem with the tailwindcss not being applied. I don't see it rebuilding after being downloaded and I get an "Error: cannot apply unknown utility class mb-3 (along with others if I comment out that particular class), this comes along with a stack trace(this is just part of it): {:proc #object[java.lang.ProcessImpl 0xf4767e1 "Process[pid=191159, exitValue=1]"], :exit 1, :in #object[java.lang.ProcessBuilder$NullOutputStream 0x32d689b0 "java.lang.ProcessBuilder$NullOutputStream@32d689b0"], :out #object[java.lang.ProcessBuilder$NullInputStream 0x6ba6d9a2 "java.lang.ProcessBuilder$NullInputStream@6ba6d9a2"], :err #object[java.lang.ProcessBuilder$NullInputStream 0x6ba6d9a2 "java.lang.ProcessBuilder$NullInputStream@6ba6d9a2"], :prev nil, :cmd ["bin/tailwindcss" "-c" "resources/tailwind.config.js" "-i" "resources/tailwind.css" "-o" "target/resources/public/css/main.css" "--watch"], :type :babashka.process/error} Has anyone encountered this before? Thanks.

2025-01-29T00:27:45.322599Z

I'm getting the same error. I bet this is something to do with tailwind 4 being released recently, since the taliwind downloader thing takes the most recent version. still investigating.

2025-01-29T00:50:45.734509Z

I've fixed/worked around this issue by setting an explicit version of the tailwind binary to install, with a default of 3.4.17 (since v4.0.0 evidently has breaking changes). To upgrade an existing project: 1. Put :biff.tasks/tailwind-version "v3.4.17" in resources/config.edn 2. Update your :dev alias biff version to {:deps/root "libs/tasks", :git/sha "1ade0c3", :git/tag "v1.8.28", ...} 3. Run rm bin/tailwindcss; clj -M:dev install-tailwind

Lawrence 2025-01-29T04:16:37.204939Z

Alright great thanks very much Jacob.

Richard Bowen 2025-01-29T14:10:22.344169Z

Theres an upgrade script available that seemlessly upgrades tailwind versions that they provide: npx @tailwindcss/upgrade@next That could likely be adapted to work with Biff.

2025-01-29T16:16:33.541349Z

we had the opposite problem here: biff was installing the latest version but we wanted to pin/downgrade to an old version.

2025-01-27T02:29:32.221149Z

interesting, haven't seen that before. I'll see if I can reproduce it tomorrow.

Lawrence 2025-01-27T02:31:29.945289Z

Thanks, would the rest of the stack trace be useful to you?

2025-01-27T02:32:34.663839Z

I don't think so, looks like it's just saying it shelled out to tailwind which then had an error. I'll probably have other questions though!