Fork me on GitHub

Sorry, how do I run a photon demo? Geoffrey walked me through the code today but I only remember running cider-jack-in-clj and picking clojure-cli. Now when I do that in user.demo-1-healthcheck and eval

#?(:clj (user/browser-main! `main))
it says
shadow-cljs has not been started yet!

Dustin Getz01:06:39

src-dev/user.clj (also see user.cljs)


Ok, I'm able to run the demos by running user/main and then running user/browser-main! main for each demo. I copied a demo into scratch and changed the namespace to match. Running (user/browser-main! main) stops the old running demo but doesn't start anything new. File is at photon/scratch/richie/seven_guis/core.cljc ns is and I changed the ns in :require-macros to match. No other changes.


The photon-starter-app says

Encountered error when macroexpanding hyperfiddle.photon/main.
Failed to resolve macro expander

Dustin Getz12:06:48

did you :require from user.clis

Dustin Getz12:06:03



Oh, thanks.

Dustin Getz13:06:39

dom/node is the new API in the dev branch; did geoffrey onboard you to the dev branch or master?


I have master checked out but we did briefly look at dev. I must have copied over demo from dev. Thanks.


Ok, great. It's working now.

❤️ 1