This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-06
Channels
- # announcements (1)
- # beginners (147)
- # boot (9)
- # calva (28)
- # cider (3)
- # circleci (18)
- # cljdoc (54)
- # cljs-dev (55)
- # cljsrn (22)
- # clojure (179)
- # clojure-canada (9)
- # clojure-dev (74)
- # clojure-europe (1)
- # clojure-italy (15)
- # clojure-nl (7)
- # clojure-spec (30)
- # clojure-uk (55)
- # clojurescript (65)
- # core-async (15)
- # cursive (12)
- # datomic (16)
- # events (4)
- # fulcro (25)
- # graalvm (3)
- # joker (2)
- # kaocha (15)
- # keechma (94)
- # off-topic (12)
- # qlkit (2)
- # re-frame (15)
- # reagent (11)
- # reitit (29)
- # remote-jobs (15)
- # rewrite-clj (16)
- # shadow-cljs (73)
- # spacemacs (151)
- # sql (3)
- # tools-deps (11)
- # unrepl (19)
- # vim (35)
util
and stream
are among the packages that have automatic browser polyfills so I'm not exactly sure what you are asking?
sorry, my issue was that I had to be explicit about how to resolve those in the shadow-cljs.edn file. i.e.
:js-options {:js-provider :shadow
:resolve
{"process"
{:target :global
:global "window.process"}
"util"
{:target :global
:global "window.util"}
"stream"
{:target :global
:global "window.stream"}
"buffer"
{:target :global
:global "window.buffer"}
"string_decoder"
{:target :global
:global "window.string_decoder"}
"events"
{:target :global
:global "window.events"}
"crypto"
{:target :global
:global "window.crypto"}
"querystring"
{:target :global
:global "window.querystring"}
"url"
{:target :global
:global "window.url"}}}
C:\Users\Devo\source\repos\compiler_repro>npx shadow-cljs compile main
shadow-cljs - config: C:\Users\Devo\source\repos\compiler_repro\shadow-cljs.edn cli version: 2.8.39 node: v10.5.0
WARNING: The thheller/shadow-cljs dependency in shadow-cljs.edn was ignored. Default version is used and override is not allowed to ensure compatibility.
[:main] Compiling ...
The required JS dependency "process" is not available, it was required by "node_modules/prop-types/checkPropTypes.js".
Searched in:C:\Users\Devo\source\repos\compiler_repro\node_modules
You probably need to run:
npm install process
See:
thanks! That worked! Now I just need to figure out the closure exceptions I'm seeing. Is there an easy way to work around closure exceptions in dependencies? error itself
[:main] Compiling ...
Closure compilation failed with 1 errors
--- node_modules/n3/lib/N3DataFactory.js:45
Multiple classes cannot share the same name.
hm, possible bug with module-spitting. in an advanced build I’m seeing the error:
ReferenceError: $cljs$cst$keyword$pro_SLASH_review$$ is not defined
the :pro/review
keyword is also used in another module. if I rename that keyword (in the other module), then this error goes away and I get the same error with another similarly-used keyword.one related issue: https://clojure.atlassian.net/browse/CLJS-3063
the problem you see can also happen if you "share" build outputs from different build passes
yeah. this project has only one build, and i’ve tried to keep those out-dirs separate now 🙂
i think i had mistakenly listed a module that I am lazy-loading, as a :depends-on
of my root module
When I run node script.js
it gives following error. I've puppeteer in package.json
and installed with npm install
.
and the package is properly installed in the directory of script.js
? ie. /home/maverick/Desktop/automat/node_modules/puppeteer
?
Thanks. I had installed puppeteer-core
but was requiring puppeteer
.
Can i bundle a cljs lib i created in shadow-cljs as a jar?
@thheller Aah, i thought there is something missing in the docs. Thanks though!
I’m trying to add a new build to my config but getting this error when running the compiled js file: Uncaught Error: browser bootstrap used in incorrect target
it’s just a simple file that runs (js/console.log "foo")
any one know what causes this error?
I’m requiring it in my main js file as a worker, so maybe that has something to do with it
cloned and followed the instructions here https://github.com/thheller/reagent-expo. When i tried to run cider-connect-cljs w/ shadow i got a java.lang.RuntimeException "Invalid token: :" any ideas where to start?
@drewverlee I don't use emacs so no clue what that means ... having a full stacktrace would be useful?
ah ok thanks.