This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-12
Channels
- # announcements (4)
- # babashka (60)
- # beginners (3)
- # calva (15)
- # cherry (1)
- # clojars (9)
- # clojure (30)
- # clojure-denmark (5)
- # clojure-europe (23)
- # clojure-losangeles (1)
- # clojure-norway (8)
- # clojurescript (49)
- # core-async (3)
- # cursive (15)
- # datomic (4)
- # deps-new (1)
- # emacs (36)
- # figwheel-main (3)
- # fulcro (16)
- # girouette (2)
- # hyperfiddle (1)
- # introduce-yourself (3)
- # lambdaisland (6)
- # nrepl (23)
- # off-topic (7)
- # pedestal (10)
- # polylith (50)
- # practicalli (1)
- # releases (2)
- # sci (16)
- # shadow-cljs (27)
- # slack-help (3)
- # sql (17)
- # tools-deps (5)
One or two years ago, I was able to develop against the :react-native target with an Android tablet connected by USB only. Not Wifi connection necessary by using:
adb reverse tcp:9630 tcp:9630
shadow-cljs watch app --config-merge '{:local-ip "127.0.0.1"}'
This seems no longer to work? The websocket does not try to connect to this :local-ip
anymore. Is that correct?Found this older thread here: https://clojurians.slack.com/archives/C6N245JGG/p1663000920346349 It seems that his feature is no longer working. So you now need a Wifi connection to run/debug on an Android device, right? @U061V0GG2 did you manage to find a way to work over USB?
I'm just developing over wifi. And haven't needed any workarounds. And adb over usb or wifi shouldn't be any different.
My problem was just a local iptables rule
Will try, but shadow-cljs watch android --verbose --config-merge '{:local-ip "127.0.0.1"}'
seems to have no effect anymore.
but I changed the logic that it tries all network adapters until it finds one that works
is anyone successfully using https://github.com/vvvvalvalval/scope-capture with shadow?
Writing for the browser, how should I import a data file, eg json, tsv, or edn?
depends on the filesize and other requirements? sometimes its good to inline, sometimes its better to load at runtime
Load at runtime as in serve the file and fetch it?
and inline as in...
as in (def data
followed by vim`:r file` ? or something else
inline as in https://clojureverse.org/t/using-none-code-resources-in-cljs-builds/3745
Hello! So i'm having a problem that's making me crazy. I have a frontend aplication that runs fine in the desktop browsers and any android browses. But on any iphone, it refuses to load the app.js. The safari manages to GET the app.js, but in the sources tab, I can't see it there. And I just get a blank html page. In a local environment it works fine, but the problem happens when I access the app via the public address, after a deploy
I'm on shadow-cljs 2.20.17 btw
Do you have any suggestion to where can I look?
could be a CORS issue if you are trying to load the .js file from a different domain than the html
The only thing that I have is this message in the console. the GET for the app.js returns 200 too. Could this be something about the compiler optimizations?
Yup! Found the culprit. To solve this Issue I had to set :output-feature-set :browser-2020. Then the release build worked as intended in Iphones. Thanks!

Yup! Found the culprit. To solve this Issue I had to set :output-feature-set :browser-2020. Then the release build worked as intended in Iphones. Thanks!
