Fork me on GitHub
#shadow-cljs
<
2020-07-06
>
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
kirill.salykin07:07:39

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

wilkerlucio14:07:50

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
wilkerlucio14:07:14

tried both :require and :require-macros, but same result

wilkerlucio14:07:51

(:require [com.wsscode.async.async-cljs :as wasync :refer [go go-promise <!p]])

wilkerlucio14:07:24

using latest shadow cljs

wilkerlucio15:07:03

in version 2.10.6 it works fine, I'm going to bisect the between version to find when it stopped

wilkerlucio15:07:05

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

kanwei15:07:22

morning - I'm getting this error when building

kanwei15:07:31

[: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)

kanwei15:07:31

alright deleting cljs-runtime seems to have fixed it

wilkerlucio17:07:24

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?

wilkerlucio17:07:40

I'm starting the node repl with shadow/node-repl from the server REPL

benny19:07:24

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

benny20:07:22

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