clojurescript

danielgrosse 2026-01-23T07:36:24.536449Z

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?

thheller 2026-01-23T08:06:57.956559Z

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.

p-himik 2026-01-23T08:11:06.092149Z

Oh, right, duh.

p-himik 2026-01-23T07:40:31.959149Z

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?

danielgrosse 2026-01-23T07:41:04.146699Z

I used cider jack-in-cljs to start the repl in emacs

p-himik 2026-01-23T07:47:18.114659Z

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.