clojurescript

ClojureScript, a dialect of Clojure that compiles to JavaScript http://clojurescript.org | Currently at 1.10.879
thheller 2021-03-12T09:04:15.309800Z

@joelittlejohn the [x] will end up taking the IPrintWithWriter path also described in the SO link you pasted. You'll need to implement that in addition to toString.

👍 1
1
joelittlejohn 2021-03-12T13:36:23.310500Z

Thanks Thomas!

2021-03-12T17:21:16.313700Z

Hey all, started a new luminus project with +cljs. I have things working in dev mode, but when I lein uberjar then java -jar project.jar and go to the browser I get the dreaded Target container is not a DOM element when mounting. Looking into this it seems the error arises when the js loads before the DOM and to fix place the script tag at the bottom of the html file.... but that's where it is. Also baffled why it would work in dev but not in an uberjar? Any thoughts?

2021-03-12T17:21:25.313900Z

I can share links to the code as well

2021-03-12T17:21:53.314200Z

Here is the project.clj: https://github.com/prismofeverything/organism/blob/master/project.clj

2021-03-12T17:23:38.315Z

Here is the cljs file (with init! highlighted): https://github.com/prismofeverything/organism/blob/master/src/cljs/organism/play.cljs#L601-L611

2021-03-12T17:24:55.316100Z

Maybe I don't understand the luminus environments totally, but I haven't touched those really so not sure why they would act differently in terms of loading the js between dev and prod

2021-03-12T17:37:06.317100Z

Thanks for any help! quite the mystery