This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-29
Channels
- # announcements (4)
- # architecture (25)
- # babashka (23)
- # beginners (56)
- # boot (4)
- # calva (1)
- # cider (1)
- # cljs-dev (15)
- # clojure (135)
- # clojure-europe (4)
- # clojure-nl (21)
- # clojure-uk (61)
- # clojurescript (47)
- # community-development (4)
- # cryogen (11)
- # cursive (11)
- # data-science (11)
- # fulcro (25)
- # funcool (5)
- # graalvm (1)
- # graphql (4)
- # kaocha (4)
- # lambdaisland (20)
- # lumo (7)
- # meander (14)
- # off-topic (9)
- # pathom (2)
- # portkey (1)
- # re-frame (5)
- # reagent (53)
- # reitit (2)
- # ring (3)
- # shadow-cljs (32)
- # spacemacs (4)
- # sql (34)
- # testing (1)
- # tools-deps (3)
when i use the command clojure -A:cider:cljs:shadow watch jarvis
, it’s will build success.
but i use the M-x cider-jack-in-cljs => chose shadow-cljs => chose :jarvis
, i will get this Error: Build failure , The required namespace “shadow.remote.runtime.cljs.browser” is not available.
this is my shadow-cljs.edn file:
{:deps {:aliases [:cljs]}
:builds {:jarvis {:target :browser
:output-dir "resources/public/js"
:modules
{:jarvis {:init-fn functor-api.core/init!}}
:devtools
{:http-port 8801
:http-root "resources/public"
:after-load functor-api.core/mount-components
:preloads [shadow.remote.runtime.cljs.browser]}}
:test {:target :browser-test
:test-dir "src/test/resources/public/js/test"
:devtools
{:http-port 8821
:http-root "src/test/resources/public/js/test"}}}}
shadow.remote.runtime.cljs.browser
what is this preload?
If you’re on the latest cider the repl buffer should have the commands it’s running to get everything set up
couple questions for you though. When running this from the command line I see you use the shadow-cljs
alias. Are you adding this to the startup command when cider-jack-in?
Thanks 👍 , when i use clojure -A:cider:cljs:shadow watch jarvis
, then i cider-connect-in-cljs , it’s work require shadow.remote.runtime.cljs.browser.
sorry I can't tell what cider is doing so I can only help with actual shadow-cljs output
Hi, is there a way to access the clojurescript compiler from a shadow project? I need to add a onclick handler to a DOM node (`onclick="console.log('hi')"`), for that I would need: (compile '(.log js/console "hi")
@quentin.leguennec1 that is not supported and not a good idea either
@thheller why is that?
I found another way around, by the way. Attaching an event works, no need for an onclick
attribute
I think that's what react does
I'm trying to rewrite react
lots of fun