This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-28
Channels
- # announcements (14)
- # autochrome-github (1)
- # babashka (4)
- # beginners (151)
- # biff (1)
- # calva (24)
- # cider (13)
- # clara (13)
- # clj-commons (1)
- # cljs-dev (24)
- # clojure (50)
- # clojure-europe (20)
- # clojure-france (13)
- # clojure-nl (4)
- # clojure-norway (12)
- # clojure-spec (43)
- # clojure-uk (6)
- # clojurescript (30)
- # cursive (2)
- # datahike (9)
- # editors (6)
- # emacs (2)
- # fulcro (29)
- # google-cloud (20)
- # graphql (2)
- # humbleui (2)
- # jobs (2)
- # juxt (4)
- # kaocha (5)
- # lsp (14)
- # malli (5)
- # membrane (10)
- # off-topic (39)
- # pathom (21)
- # polylith (10)
- # rdf (8)
- # reagent (4)
- # remote-jobs (3)
- # reveal (18)
- # shadow-cljs (27)
- # spacemacs (7)
- # tools-deps (30)
I'm getting the following error when running cider-jack-in-cljs
in emacs ,the selecting shadow
as the repl type
;; ClojureScript REPL type: shadow
;;
[:app] Configuring build.
[:app] Compiling ...
[:app] Build failure:
The required namespace "react" is not available, it was required by "reagent/core.cljs".
To quit, type: :cljs/quit
[:selected :app]
It appears to work when I run it from cli:
npm run dev
...
shadow-cljs - server version: 2.11.23 running at
shadow-cljs - nREPL server started on port 3333
shadow-cljs - watching build :app
[:app] Configuring build.
[:app] Compiling ...
[:app] Build completed. (165 files, 164 compiled, 0 warnings, 17.84s)
What could be a reason for that?
It worked fine the last weekHere's the shadow-cljs.edn file: https://github.com/jumarko/learn-reagent/blob/develop/increments/complete/shadow-cljs.edn#L1
Nevermind, I found the problem - I was using a wrong shadow-cljs.edn file. The correct one is https://github.com/jumarko/learn-reagent/blob/develop/giggin/shadow-cljs.edn#L1
@lilactown indeed karma works nicely. I am using playwright instead to run against three browsers at a time which is nice. Haven't tried it on CI yet but on Mac it works nicely.
Hi, I'm developing a web app and source maps work fine on desktop, but not on chrome for android (using the PC's devtools). The message (loads of other files) is: DevTools failed to load source map: Could not load content for http*/cljs-runtime/*.js.map: Fetch through target failed: Target not supported; Fallback: Unknown error Already checked that the URL is accessible in the mobile browser. Any ideas why? And is it possible to get it working? Thanks.
Sorry, thought it would be irrelevant, since the map file URL opens in the mobile browser successfully. The full path of one of the errors is https://host/cljs-runtime/goog.events.eventid.js.map.
is it a literal host
? I mean this is the root of your problem. it doesn't help if you change it 😛
if you are trying to hide a IP then check if its the actual IP reachable by both the host PC and the Android device
Trying not to expose private info X). It's a FQDN, where the app is running. Like http://myapp.me.com
Yes. It is the same base address in the browser's address bar. It's being served by an nginx proxying to shadow-cljs.
I've set :devtools-url in shadow-cljs.edn for it to work through https. In the repl I get to access the mobile browser's runtime
dunno what "Unknown error" means. doesn't seem like something shadow-cljs is involved in at all
Yes. Self signed, but I added it to both browsers and the app works fine, including the https exclusive stuff
hmm yeah but self-signed is always a problem. it might not be trusted by the devtools so thats why it might fail
Good idea. Will get that and investigate devtools. Thank you for your help and for shadow-cljs!
I tested first without https, nginx, etc to see if I could reproduce the error. And it still happens:
(this time verbatim)
DevTools failed to load source map: Could not load content for http://192.168.10.100:5000/cljs-runtime/clojure.string.js.map: Fetch through target failed: Target not supported; Fallback: Unknown error
DevTools failed to load source map: Could not load content for http://192.168.10.100:5000/cljs-runtime/shadow.remote.runtime.obj_support.js.map: Fetch through target failed: Target not supported; Fallback: Unknown error
Just two examples. There are hundreds of lines like these.
What I could identify is that the only file specific to my app is a web worker.
My related :modules
:
:shared {:entries []}
:main {:entries [main]
:depends-on #{:shared}
:preloads [dev-preload]}
:worker-pricemeter
{:init-fn workers.pricemeter/init
:depends-on #{:shared}
:web-worker true}
Any ideas?