Fork me on GitHub

random question: I’m trying to invoke a single file emitted by shadow via the graalvm polyglot context (i.e. from jvm clojure). It fails to load due to an error stating “org.graalvm.polyglot.PolyglotException: ReferenceError: global is not defined” I presume this is My question is: could this work or am I trying to do something in the “too hard” basket?


extra info: graal polyglot does not support nodejs modules so it needs to be a single js artifact. for that reason, I used :node-script as the target


as the :node-script name suggests that is meant for node ...


graal would be its own target but I didn't look into that yet


ah yes, of course. I had answered my own question without knowing it. thanks. I’ll go with the other architecture instead.


Hi, I'm new here! Thanks for the awesome compiler! I'm migrating from figwheel + cljs-oops/cljsjs/externs and couldn't be happier to throw away a few layers of dependencies and be able to use npm's packages!


I have a question: I have lein managing my dependencies and can successfully build an app using lein-shadow plugin. But I don't understand how I can run a build-report using lein dependencies? I want to see what adds size to my package. Thanks!


I don't recommend using lein-shadow but the config it generated should be enough to be able to run a regular build report


either through shadow-cljs or via lein run


Thanks! It was giving me getSourceName not found error. But after I run lein shadow release app and then immediately build a report it worked. Not sure what was the problem, I'll dig deeper next time I generate a report.


that error points to a version conflict on the closure-compiler dependency


Got it. Now I see what doc meant about weird java stack traces with lein and, indeed, I had a closure compiler in my dependency vector that was different from the one that shadow depends on. I removed any mentions of closure compilers in my dependency vector and will let shadow manage it for me. Everything seems to be back to normal. Thanks for all the help!


Running compilation before the report seems to solve the problem above and remove a weird java stack trace. Is it a requirement to run a compilation before generating a report?


hello all, how do I convert

import EStyleSheet from 'react-native-extended-stylesheet';
to clojurescript ?


I tried ["react-native-extended-stylesheet" :default EStyleSheet] and it´s giving Can´t find variable EStyleSheet


when using (EStyleSheet.create)


@fabrao (EStyleSheet.create) thats invalid, should be (.create EStyleSheet)


@thheller would you be interested in making the build cache aware of content of source files, instead of mod times? Tracking hashes in the cache perhaps? We are trying to keep our docker build self-contained and tracking file content would allow us to re-use the cache between docker builds.


@davewo open a ticket, I'll think about it


Is this meant to be the same:

shadow-cljs cljs-repl $BUILD_ID

(require '[shadow.cljs.devtools.api :as s])
(s/node-repl $BUILD_ID


I’m seeing some weird differences around :node reader conditionals between those


specifically the CLI invocation properly gets a REPL that has :node stuff read and the Clojure API one doesn’t


Oh just realizing that I’m using the API wrong


Hello, I am discovering shadow-cljs for a personal project. I use Emacs. I'm used to figwheel way of working. When there is a compilation error (for any reason), the completion in Emacs ceases to work. This makes coding quite painful. It's not the case in figwheel. Will it change in future versions? Thanks


can you open an issue on cider's github issue tracker with a minimal repro and I can attempt to find out what's going on?


Sorry for late reply. Yes I'll take time for that. Thanks.