This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-11
Channels
- # aws (2)
- # babashka (11)
- # beginners (107)
- # calva (6)
- # cljsrn (18)
- # clojure (180)
- # clojure-australia (6)
- # clojure-europe (54)
- # clojure-losangeles (9)
- # clojure-nl (4)
- # clojure-uk (13)
- # clojureladies (1)
- # clojurescript (57)
- # clojureverse-ops (1)
- # consultantsdirectory (1)
- # cursive (48)
- # datomic (11)
- # defnpodcast (3)
- # degree9 (1)
- # deps-new (5)
- # depstar (21)
- # docker (2)
- # fulcro (15)
- # helix (32)
- # kaocha (1)
- # lsp (21)
- # malli (15)
- # meander (15)
- # news-and-articles (2)
- # nextjournal (1)
- # off-topic (42)
- # pathom (3)
- # podcasts-discuss (1)
- # polylith (73)
- # protojure (1)
- # re-frame (43)
- # reagent (1)
- # releases (1)
- # restql (1)
- # schema (1)
- # sci (1)
- # shadow-cljs (23)
- # spacemacs (7)
- # sql (5)
- # tools-deps (42)
- # vim (15)
- # xtdb (3)
I'm trying to get a krell project running. Currently getting Caused by: clojure.lang.ExceptionInfo: ReferenceError: Can't find variable: cljs
when running clj -M -m krell.main -co build.edn -c -r
if anyone has experienced this?
You may find this helpful https://github.com/vouch-opensource/krell/issues/91
I did see that, but I'm not on windows (ubuntu).
@danielstockton that error means the something went wrong with the RN environment setup - did you try the exact steps defined in the Reagent tutorial?
Yes, I followed the RN CLI quickstart and had it running successfully on my device with only RN. Following the krell steps, I encountered the npm resolve error and fell back to using yarn. I deleted everything and tried following the instructions again, with the same result. I also tried bumping reagent up to 1.1.0 in deps.edn, which allowed me to install the dependencies with npm - didn't expect this to work, and it failed with a different error (missing some react native device type modules).
Looks like I'm not the only one having this problem: https://github.com/vouch-opensource/krell/issues/142
Does anyone else actually have hot code reloading working reliably and quickly with expo + shadow? Here is an example of what I've been experiencing https://youtu.be/UhQNRVyC8VM?t=58, also note the part at 2:20ish where I get instant updates when changing a js file. (ignore the rest of the video, its part of a blog I'm slowly doing, just wanted to see if anyone had an answer for this weirdness before I publish)
Also I only need to save twice when using a real device (or sim), in react native web its slow and kills my state, but doesn't leave me with a stale bundle (unless I refresh the page, then I get a stale bundle 🤷 )
I have experienced the same thing. Not sure what the solution is, but I would be very interested to hear about one.
btw try (tap> activity)
and looking at it in the shadow-cljs ui http://localhost:9630/inspect. instead of the def
thingy
I think if you disable fast refresh expo still does the old slow refresh. there was an option to disable that too last time I looked at it. but its been a while, not sure where to
It could be webpack. If so there’s a fix. https://forums.expo.dev/t/disable-reloading-for-web/44059/5
Sorry guess I linked a bit late in the video, I show that I have fast refresh turned off, I have also tried that web pack config @U0ETXRFEW and still get the same issue. Also why would it only happen on cljs files if it was to do with the expo/webpack tooling?