Hey all, after watching Davids Talk on the Clojure Conj 2025 I wanted to fiddle around with Clojurescript again.
I setup a small project with the latest release and tried the commands he used in the presentation.
Unfortunately the (doc assoc) is giving me the error
WARNING: Use of undeclared Var user/doc at line 1 *cider-repl clojurescript/datastar-ui:localhost:62689(cljs:browser)*
Execution error (TypeError) at (<cljs repl>:1).
undefined is not an object (evaluating 'user.doc.call')
Is there something I'm missing?WARNING: Use of undeclared Var user/doc, so that means you are in the user namespace. for cljs you should be in cljs.user which has the doc refer already setup.
Oh, right, duh.
doc comes from the cljs.repl namespace which should be automatically (use cljs.repl)'ed when you start your REPL, so it should be automatically made available without fully qualifying it.
But it doesn't seem like that was required in your case. How exactly did you start the REPL?
I used cider jack-in-cljs to start the repl in emacs
Could be relevant: https://github.com/clojure-emacs/cider/issues/2647 But I actually have no idea since I'm not a CIDER user. @bozhidar probably knows for sure.