This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-15
Channels
- # aleph (24)
- # announcements (8)
- # babashka (27)
- # beginners (55)
- # biff (4)
- # calva (32)
- # cider (5)
- # clj-kondo (11)
- # clojure (59)
- # clojure-android (3)
- # clojure-australia (1)
- # clojure-belgium (6)
- # clojure-dev (21)
- # clojure-europe (26)
- # clojure-nl (1)
- # clojure-norway (17)
- # clojurescript (19)
- # css (1)
- # data-science (10)
- # datahike (17)
- # events (3)
- # figwheel-main (4)
- # honeysql (1)
- # hugsql (5)
- # hyperfiddle (1)
- # jobs (1)
- # leiningen (3)
- # lsp (6)
- # malli (5)
- # meander (4)
- # nbb (6)
- # off-topic (87)
- # pathom (19)
- # portal (2)
- # re-frame (4)
- # reitit (6)
- # releases (1)
- # remote-jobs (3)
- # shadow-cljs (29)
- # sql (8)
- # tools-deps (6)
- # xtdb (7)
@thheller hey Thomas, when using shadow with target :esm
trying to load the js built by shadow from another port it fails because browsers are more strict about module includes, requiring a Access-Control-Allow-Origin` header set. I tried using my own http-handler but that only gets called when a file doesn't exist. Wondering if you'd be open to adding that header with a
*
value?
easier no, in this case the other server is clerk and I’d prefer to have the config related to serving of js files in a single place in shadow-cljs.edn
the websocket :9630 server already sets all the proper headers and is not affected by which server you use
would love to offload this to shadow for the use case for when folks want to take over the js build for clerk
wouldn’t this also be a problem for mobile esm builds where you run shadow on your PC and access it via the your phone?
depends on which server you use. I have never used a separate webserver just for serving the JS files
I can make sure my custom http hander is being called by not setting any :roots
but defaulting to the header set might be simpler?
fs is part of the node-libs-browser polyfill package to provide node-native package support
for none-node builds. You should install shadow-cljs in your project to provide that dependency.
npm install --save-dev shadow-cljs
I’m getting this message despite shadow cljs being installed in package.json. version is 2.20.10
I use one node_modules
for client and server code though and above this message I’m seeing my client build fail because I’m requiring fs
— which I guess kind of makes sense but worked with 2.15.10
works again after downgrading to 2.15.10