This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-06
Channels
- # aws-lambda (6)
- # babashka (1)
- # beginners (204)
- # calva (10)
- # chlorine-clover (17)
- # cider (57)
- # cljs-dev (3)
- # cljsrn (3)
- # clojure (148)
- # clojure-bangladesh (1)
- # clojure-berlin (3)
- # clojure-europe (30)
- # clojure-france (1)
- # clojure-italy (4)
- # clojure-nl (5)
- # clojure-spec (4)
- # clojure-uk (14)
- # clojurescript (15)
- # code-reviews (8)
- # conjure (27)
- # data-science (9)
- # datomic (38)
- # duct (6)
- # figwheel-main (11)
- # fulcro (78)
- # helix (11)
- # jobs (1)
- # malli (18)
- # meander (22)
- # mount (4)
- # nrepl (3)
- # off-topic (93)
- # pathom (2)
- # pedestal (4)
- # re-frame (5)
- # reagent (6)
- # reitit (1)
- # ring-swagger (1)
- # sci (1)
- # shadow-cljs (19)
- # spacemacs (1)
- # sql (1)
- # tools-deps (76)
- # unrepl (1)
- # vim (5)
- # xtdb (8)
Hi folks, is there a reason why shadow-cljs might include its remote runtime code in a release build?
I'm using shadow-cljs release app --verbose
and seeing libs like Cache read: shadow/remote/runtime/cljs/env.cljs
in the output
Nvm! Found the culprit in a require of shadow.remote.runtime.cljs.browser
in one of our devtools that was also being included

Goodmorning, I am compiling cljs in a docker - everything seems fine, but when I run the compiled scripts - there is an error that package not found
dev_1 | internal/modules/cjs/loader.js:1032
dev_1 | throw err;
dev_1 | ^
dev_1 |
dev_1 | Error: Cannot find module '/app/app/app.js'
dev_1 | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1029:15)
dev_1 | at Function.Module._load (internal/modules/cjs/loader.js:898:27)
dev_1 | at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
dev_1 | at internal/main/run_main_module.js:17:47 {
dev_1 | code: 'MODULE_NOT_FOUND',
dev_1 | requireStack: []
dev_1 | }
Maybe you have any ideas what goes wrong?
thanks!
UPD: found the issue - related to docker setuphello, question, I'm trying to run some code on. Shadow Node REPL, but when I try to invoke any macros it says #object[TypeError TypeError: Cannot read property 'call' of undefined]
, is there any special thing that needs to be done to call macros on node repl?
tried both :require
and :require-macros
, but same result
(:require [com.wsscode.async.async-cljs :as wasync :refer [go go-promise <!p]])
using latest shadow cljs
in version 2.10.6
it works fine, I'm going to bisect the between version to find when it stopped
sorry, realised the problem was I was putting a clojurescript version in the deps, moving it to provided to shadow doesn't see it (I still want for the editor to see) fixed the issue
[:ddregister] Configuring build.
[:ddregister] Compiling ...
[2020-07-06 11:38:17.464 - WARNING] :shadow.cljs.devtools.server.util/handle-ex - {:msg {:type :start-autobuild}}
AssertionError Assert failed: (.exists file)
shadow.build.cache/read-cache (cache.clj:33)
shadow.build.cache/read-cache (cache.clj:33)
shadow.build.closure/convert-sources-simple/fn--52392/fn--52394 (closure.clj:2097)
clojure.lang.PersistentVector.reduce (PersistentVector.java:343)
clojure.core/reduce (core.clj:6827)
clojure.core/reduce (core.clj:6810)
shadow.build.closure/convert-sources-simple/fn--52392 (closure.clj:2089)
shadow.build.closure/convert-sources-simple (closure.clj:2087)
shadow.build.closure/convert-sources-simple (closure.clj:2009)
shadow.build.compiler/maybe-closure-convert (compiler.clj:1164)
shadow.build.compiler/maybe-closure-convert (compiler.clj:1157)
shadow.build.compiler/compile-all (compiler.clj:1409)
another thing, I'm noticing on the node repl, if shadow finds a warning, the file stops loading, is there a way to launch the node repl so it ignores warnings and just keeps running things?
I'm starting the node repl with shadow/node-repl
from the server REPL
i’m targeting react-native and have images in a directory called images
under the root of my project. my output-dir
for the target is app
but can’t figure out how to reference the images if my app is running from the app