Hey there ๐ Thanks a lot for clerk ๐ I enjoy using it a lot! I ran into an issue with Clerk Garden, it's stuck after clerk gets evaluated, any ideas what could gone wrong? https://build.github.clerk.garden/rollacaster/css-grids/commit/7b4b6708ffbbce166c3eb5492fc686b5af9b788a/?update=1
Hi @thsojka I can just speculate given your code the output at https://build.github.clerk.garden/rollacaster/css-grids/commit/7b4b6708ffbbce166c3eb5492fc686b5af9b788a/?update=1 that the
(ns user)
(require '[nextjournal.clerk :as clerk])
(clerk/serve! {:browse? true})
namespace gets in the way on Garden (probably the :browse? flag). I think thatโs loaded because you add the "dev" path in your deps.edn can you try removing that and build again?maybe move the "dev" path to a :dev alias
running clojure -X:nextjournal/clerk from your repo locally builds the static app just fine but also opens a browser tab with clerk homepage. I guess thatโs what makes troubles on garden, maybe @clojurians-slack359 can confirm?
garden should not hang on clojure.java.browse/browse-url invocations
Yep, the browse invocation breaks on garden, since the environment there is headless and doesn't come with a browser. You can reproduce the error using https://github.com/nextjournal/garden-env
We should ideally just ignore calls to browse on garden or at least do a better job at surfacing the error.
Ah makes sense! Thanks for your help!
I ran into yet another issue when building with clerk.garden: I get a FileNotFoundException when trying to build https://github.com/rollacaster/css-grids which is using clerk/image and pointing to a file.
I tried to run it locally with clj -X:nextjournal/clerk :browse true and also via https://github.com/nextjournal/garden-env both do not show the FileNotFoundException
Any ideas what went wrong?
Can you try wrapping the paths in a ?
Thanks that worked ๐