This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-11
Channels
- # announcements (38)
- # babashka (5)
- # beginners (26)
- # calva (26)
- # cider (1)
- # clj-kondo (36)
- # cljdoc (17)
- # cljs-dev (31)
- # clojure (39)
- # clojure-australia (9)
- # clojure-berlin (2)
- # clojure-dev (31)
- # clojure-europe (22)
- # clojure-france (3)
- # clojure-italy (7)
- # clojure-nl (5)
- # clojure-norway (5)
- # clojure-spec (28)
- # clojure-uk (9)
- # clojured (20)
- # clojurescript (24)
- # community-development (2)
- # conjure (32)
- # core-async (7)
- # cryogen (6)
- # datomic (2)
- # duct (6)
- # fulcro (6)
- # graalvm (53)
- # introduce-yourself (2)
- # jobs (2)
- # luminus (2)
- # nrepl (2)
- # off-topic (35)
- # re-frame (17)
- # reveal (8)
- # shadow-cljs (27)
- # testing (2)
- # xtdb (8)
hey @thheller I'm having some trouble with using the repl
apiyo@apiyo-ThinkPad:~/git-repos/<my-repo>$ yarn start-repl
yarn run v1.22.10
$ shadow-cljs cljs-repl app
shadow-cljs - config: /home/apiyo/git-repos/<my-repo>/shadow-cljs.edn
log4j:WARN No appenders could be found for logger (org.jboss.logging).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See for more info.
shadow-cljs - server version: 2.10.22 running at
shadow-cljs - nREPL server started on port 3333
WARNING: replace already refers to: #'clojure.core/replace in namespace: ona.utils.helpers, being replaced by: #'clojure.string/replace
WARNING: any? already refers to: #'clojure.core/any? in namespace: chimera.core, being replaced by: #'chimera.core/any?
cljs.user=> (js/console.log "test")
No available JS runtime.
See >
my app build looks as follows:
{:app {:asset-path "/js/quagga"
:modules {:shared
{:entries []}
:organization
{:entries [quagga.components.organization.init]
:depends-on #{:shared}}
:home
{:entries [quagga.components.home.init]
:depends-on #{:shared}}
...}
:output-dir "resources/public/js/quagga/"
:target :browser
:devtools {:devtools-url ""}}
Do I have to build a handler on my server for /shadow-cljs
path that proxies requests to http://localhost:9630?
otherwise you need
assuming shadow-cljs is reachable on that location. you can test by just opening it in the browser, you should get the UI
once it is connected yes. check your browser console where you are loading your app.
still getting the same error
apiyo@apiyo-ThinkPad:~/git-repos/zebra/quagga$ yarn shadow-cljs cljs-repl app
yarn run v1.22.10
$ /home/apiyo/git-repos/zebra/quagga/node_modules/.bin/shadow-cljs cljs-repl app
shadow-cljs - config: /home/apiyo/git-repos/zebra/quagga/shadow-cljs.edn
log4j:WARN No appenders could be found for logger (org.jboss.logging).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See for more info.
shadow-cljs - server version: 2.10.22 running at
shadow-cljs - nREPL server started on port 3333
WARNING: replace already refers to: #'clojure.core/replace in namespace: ona.utils.helpers, being replaced by: #'clojure.string/replace
WARNING: any? already refers to: #'clojure.core/any? in namespace: chimera.core, being replaced by: #'chimera.core/any?
cljs.user=>
(js/console.log "test")
No available JS runtime.
See >
I don't know what you are doing but what you just pasted is just telling me that no runtime has connected back to shadow-cljs. so you either didn't open the compiled code in the browser OR it failed to connect
I tried explaining how everything works in https://shadow-cljs.github.io/docs/UsersGuide.html#repl-troubleshooting
if you just care about quickly getting a REPL that is NOT related to your "app" you can just use shadow-cljs browser-repl
instead. that'll open a browser on its own.