Fork me on GitHub
#shadow-cljs
<
2023-01-29
>
Sam Ritchie02:01:30

@thheller any thoughts on including the shadow-cljs npm dependency under src/deps.cljs in the clojure library version of shadow? I noticed when I ran (npm-deps/main {} {}) that it complained that I didn’t have shadow’s npm dep installed…

thheller08:01:32

I consider the deps.cljs method to be full of flaws

thheller08:01:39

uhm and what "complaint" are you talking about?

thheller08:01:16

the "not installed in project" warning only exists when running via the shadow-cljs command?

Sam Ritchie14:01:15

I’ll get more info for you once family settles down, but @thheller I’m working on a namespace that will let users trigger a shadow build, and dependency download, without a shadow-cljs.edn or package.json . This is for Clerk, if someone wants to use a cljs library they need to rebuild the JS that Clerk uses, and I want that (for new users) to happen transparently; so new JS gets built behind the scenes and swapped into Clerk’s html

Clojuri0an08:01:12

Anyone know why I can't get this to render?

[12:15 AM] (let my-pictures #js {:view (fn [] (        
       (m "main" #js {:class "container"}
         (m "article"
            (m "h1" #js {:role "button"} "My Name")
            (m "h2" "My Pictures")))))})
                             

(defn render-content []
  (println "test rendering")
  (println my-pictures)
  (println(. js/document -body))
  (m/mount (. js/document -body) my-pictures))


(defn init []
  (.addEventListener js/document "DOMContentLoaded" render-content))
[12:16 AM] TypeError: fexpr__12320.call is not a function at line
(let my-pictures #js {:view (fn [] (
Seems I'm calling the function incorrectly

thheller08:01:14

please avoid cross posting multiple channels