This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-05
Channels
- # aleph (2)
- # announcements (3)
- # architecture (5)
- # beginners (51)
- # biff (5)
- # cider (1)
- # clerk (8)
- # clj-kondo (6)
- # cljsrn (5)
- # clojure (31)
- # clojure-europe (42)
- # clojure-nl (1)
- # clojure-norway (21)
- # clojure-uk (3)
- # emacs (11)
- # fulcro (2)
- # graphql (6)
- # hugsql (1)
- # jobs (2)
- # leiningen (3)
- # lsp (3)
- # malli (13)
- # missionary (1)
- # off-topic (7)
- # pathom (7)
- # polylith (27)
- # reagent (14)
- # reitit (3)
- # remote-jobs (7)
- # shadow-cljs (20)
- # spacemacs (4)
- # sql (3)
- # tools-build (4)
- # xtdb (7)
Hi all, I have an html -> pdf workflow I need to build and because it's a thirdparty that will render, I need to deliver html and css, no js since it won't wait for rendering. I read a thread on no static site gen in shadow, and to instead just render html statically from clj. I'm trying to figure out the best workflow though for livereload and testing since the pdfs will be design heavy. Want to add tailwind and having postcss in my standard shadow setup is so great, want to see if I can recreate that somehow but with static gen. Any thoughts on how I might set something like this up?
really not much of a shadow-cljs question. it just builds the code, how you run that code is up to you. I don't have any particular recommendation, I do all server side stuff in clj.
Hey I'm getting the stale output warning and I'm not sure why. I have a running watch and the JS is behaving like I would expect? I did change this HTML file to a PHP file, could that cause issues?
your server and client are built out of step. It's likely you either have a cached frontend or something similar ongoing
Yeah i screwed up the asset path. Got it working now, thanks
I am not able to make this thing work with shadow-cljs https://github.com/rauhs/hicada it says
The required namespace "hicada.compiler" is not available, it was required by "ui/hiccup.cljc".
"hicada/compiler.clj" was found on the classpath. Maybe this library only supports CLJ?
I tried following this https://code.thheller.com/blog/shadow-cljs/2019/10/12/clojurescript-macros.html
can hook up a minimal reproduction, but maybe not worth it. I just need something to parse hiccup with into react createElement on node and in the browser, maybe another lib will work
maybe try (:require-macros [hicada.compiler])
? doesn't seem to have a cljs variant, so :require
will fail
404 | #_{:clj-kondo/ignore [:redefined-var]}
405 | (do (ns-unmap 'emmy.quaternion '->Quaternion)
----------^---------------------------------------------------------------------
Partial alias created for namespace emmy.quaternion, possibly due to await/yield transpilation.
This may prevent optimization of anything nested under this namespace.
See for more details.
is this a sign that I should not be calling ns-unmap
here? https://github.com/mentat-collective/emmy/blob/ac6e444abe626d044beb14a5ef7417f65ba556d8/src/emmy/quaternion.cljc#L405-L413