This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-11
Channels
- # aleph (7)
- # announcements (5)
- # beginners (58)
- # calva (20)
- # cider (10)
- # clj-kondo (4)
- # cljfx (5)
- # cljsrn (7)
- # clojure (29)
- # clojure-europe (11)
- # clojure-mexico (1)
- # clojure-norway (26)
- # clojure-uk (9)
- # clojurescript (1)
- # cursive (31)
- # datahike (22)
- # datomic (12)
- # duct (3)
- # fulcro (28)
- # helix (35)
- # hyperfiddle (28)
- # lsp (4)
- # malli (8)
- # midje (3)
- # music (2)
- # nbb (9)
- # nrepl (20)
- # off-topic (36)
- # polylith (3)
- # shadow-cljs (47)
- # sql (2)
- # testing (7)
- # vim (17)
- # xtdb (7)
running shadow with react native, but it requires rebuild to reload on device, is that the default or is there a problem, because i saw krell updating when code is run on the repl
hot reload is fully supported. It does however using the proper annotation and render function
the key piece is this https://github.com/thheller/reagent-react-native/blob/master/src/main/test/app.cljs#L31-L34
yes i started from this template, should i re evaluate that piece each time i load or change a function?
no, should all work on its own. but it requires that your running app was able to connect back to the shadow-cljs instance
npx shadow-cljs -d cider/cider-nrepl:0.28.5 watch :app shadow-cljs - config: /home/o/Documents/clj/repos/shadow-cljs.edn shadow-cljs - server version: 2.19.8 running at http://localhost:9630 shadow-cljs - nREPL server started on port 46535 shadow-cljs - watching build :app [:app] Configuring build. [:app] Compiling ... [:app] Build completed. (93 files, 0 compiled, 0 warnings, 9.23s) [:app] Compiling ... [:app] Build completed. (93 files, 1 compiled, 0 warnings, 0.48s)
#1 JVM Clojure Runtime Connected 45 minutes ago #12 - build: app react-native - Connected 1 minute ago
info Reloading app... BUNDLE ./index.js LOG Running "AwesomeProject" with {"rootTag":61} ERROR TypeError: undefined is not an object (evaluating 'device.id') This error is located at: in Camera (created by repos.app.cam) in repos.app.cam in RCTView (created by View) in View (created by repos.app.root) in repos.app.root in Unknown in RCTView (created by View) in View (created by AppContainer) in RCTView (created by View) in View (created by AppContainer) in AppContainer in AwesomeProject(RootComponent) ERROR TypeError: undefined is not an object (evaluating 'device.id') This error is located at: in Camera (created by repos.app.cam) in repos.app.cam in RCTView (created by View) in View (created by repos.app.root) in repos.app.root in Unknown in RCTView (created by View) in View (created by AppContainer) in RCTView (created by View) in View (created by AppContainer) in AppContainer in AwesomeProject(RootComponent) LOG shadow-cljs #14 ready!
nil ; No available JS runtime. ; See https://shadow-cljs.github.io/docs/UsersGuide.html#repl-troubleshooting
never mind just syntax err prevented exe now its working but reloading is still missing without saving and rebuild, sorry kind of noob here
and maybe this helps explanining what hot-reload does https://code.thheller.com/blog/shadow-cljs/2019/08/25/hot-reload-in-clojurescript.html
I was upgrading to latest [email protected]
. I changed my code to point to tick.core
instead of tick.alpha.api
. Running release locally I have no issues, but running on CI (github action) gives me the following error. I have removed all references to tick.alpha.api
in my code. Any help in pinpointing what the issue could be?
Run shadow-cljs -v release app
shadow-cljs -v release app
shell: /usr/bin/bash -e {0}
env:
SSH_AUTH_SOCK: /tmp/ssh-puo472pwx35q/agent.1748
SSH_AGENT_PID: 1749
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.16-8/x64
shadow-cljs - config: /home/runner/work/innsmouth/innsmouth/shadow-cljs.edn
shadow-cljs - starting via "clojure"
DEPRECATED: Libs must be qualified, change figwheel-sidecar => figwheel-sidecar/figwheel-sidecar (deps.edn)
DEPRECATED: Libs must be qualified, change hashp => hashp/hashp (deps.edn)
[2022-08-11 22:00:26.689 - WARNING] :shadow.build.classpath/bad-jar-contents - {:jar-file "/home/runner/.m2/repository/re-frame-utils/re-frame-utils/0.1.0/re-frame-utils-0.1.0.jar", :bad-prefix "out", :bad-count 67}
[:app] Compiling ...
-> build target: :browser stage: :configure
<- build target: :browser stage: :configure (5 ms)
-> Resolving Module: :app
The required namespace "tick.alpha.api" is not available, it was required by "innsmouth/controller/accounts.cljs".
> The required namespace "tick.alpha.api" is not available, it was required by "innsmouth/controller/accounts.cljs".
The problem is I tick.alpha.api does not seem to be referenced directly. I already did a search.