This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-29
Channels
- # babashka (4)
- # babashka-sci-dev (96)
- # beginners (79)
- # calva (26)
- # cider (5)
- # clerk (2)
- # clj-kondo (23)
- # clojars (14)
- # clojure (54)
- # clojure-europe (8)
- # clojure-sweden (3)
- # clojurescript (76)
- # datomic (12)
- # deps-new (6)
- # emacs (20)
- # events (3)
- # exercism (1)
- # fulcro (11)
- # funcool (12)
- # hugsql (14)
- # hyperfiddle (6)
- # kaocha (1)
- # lambdaisland (1)
- # lsp (22)
- # malli (1)
- # matcher-combinators (6)
- # nbb (6)
- # off-topic (128)
- # polylith (14)
- # re-frame (4)
- # reagent (1)
- # releases (4)
- # shadow-cljs (8)
- # tools-build (13)
- # tools-deps (13)
- # tree-sitter (5)
@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…
the "not installed in project" warning only exists when running via the shadow-cljs
command?
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
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