Fork me on GitHub
Tom H.03:07:35

Hi folks, is there a reason why shadow-cljs might include its remote runtime code in a release build?

Tom H.03:07:17

I'm using shadow-cljs release app --verbose and seeing libs like Cache read: shadow/remote/runtime/cljs/env.cljs in the output

Tom H.04:07:36

Nvm! Found the culprit in a require of shadow.remote.runtime.cljs.browser in one of our devtools that was also being included

aw_yeah 3

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 setup


hello, 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?

✔️ 3

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


morning - I'm getting this error when building


[: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) (cache.clj:33) (cache.clj:33) (closure.clj:2097)
	clojure.lang.PersistentVector.reduce (
	clojure.core/reduce (core.clj:6827)
	clojure.core/reduce (core.clj:6810) (closure.clj:2089) (closure.clj:2087) (closure.clj:2009) (compiler.clj:1164) (compiler.clj:1157) (compiler.clj:1409)


alright deleting cljs-runtime seems to have fixed it


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


rn will just handle linking it when i’m building for release?