This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-27
Channels
- # announcements (10)
- # bangalore-clj (1)
- # beginners (130)
- # calva (8)
- # cider (66)
- # circleci (2)
- # clojure (197)
- # clojure-europe (2)
- # clojure-italy (8)
- # clojure-nl (5)
- # clojure-spec (14)
- # clojure-uk (35)
- # clojurescript (46)
- # code-reviews (5)
- # cursive (4)
- # datomic (88)
- # duct (1)
- # emacs (2)
- # figwheel-main (15)
- # fulcro (20)
- # graalvm (1)
- # graphql (3)
- # jackdaw (2)
- # leiningen (2)
- # off-topic (64)
- # pathom (53)
- # re-frame (52)
- # reagent (12)
- # reitit (43)
- # rewrite-clj (1)
- # shadow-cljs (38)
- # spacemacs (3)
- # sql (17)
- # tools-deps (6)
- # vim (30)
@thheller just want to say "thank you!" for the hot-reloading capabilities. Amazing stuff as usual.
My chromium browser gives up loading the js files from the dev-http server(after about 2 seconds) saying the parser is blocked because of document.write(). Has anyone seen this happen? shadow-cljs version is 2.8.51 and works fine on firefox π
try https://clojureverse.org/t/improving-initial-load-time-for-browser-builds-during-development/2518
Hello, fellas! Do you have any friendship recipes for building cljs via lein shadow release app
?
Found this
https://gitlab.com/nikperic/lein-shadow
But it fails on a call to Closure.
Exception in thread "main" Syntax error compiling . at (shadow/build/closure.clj:68:5).
...
Caused by: java.lang.NoSuchFieldException: getRegisteredGroups
at java.base/java.lang.Class.getField(Class.java:1958)
Same if I run
lein run -m shadow.cljs.devtools.cli compile app
@ognivo that is caused by a dependency conflict. try adding
[com.google.javascript/closure-compiler-unshaded "v20190819"]
[org.clojure/google-closure-library "0.0-20190213-2033d5d9"]
to your depsJust a note, I find it better to exclude these deps from clojurescript which then allows the versions to be pulled in from the shadow-cljs dependency. So then shadow-cljs controlls the versions of these. E.g. https://github.com/Day8/re-frame/blob/master/project.clj#L6 @ognivo @thheller
Yes, I should start to do this. Thanks!
Personally, I donβt lein, but this time I do it for the boys π
any idea why the repl would not be showing any console logs
or error?
i'm doing node repl-node/main.js
shadow-cljs watch app
shadow-cljs cljs-repl app
prn
and (.log js/console ...)
js/console
logs will show in the output of the actual node process. so node repl-node/main.js
ok, actually it does work
i think my actual problem is promises
any reason why a .then
wouldn't complete and/or be able to log from inside the callback?
well therein lies the problem. the async nature of JS doesn't play well with bindings
that makes more sense than prn
randomly not working
ok, nm i found the issue
thanks
seems my API auth randomly stopped working so .then
wasn't happening, it's .catch
now >.<
This helped with my exception.
[com.google.javascript/closure-compiler-unshaded "v20190819"]
[org.clojure/google-closure-library "0.0-20190213-2033d5d9"]
Thank you Mr Heller!Hi! When the target is :karma
adding :loader-mode :eval
is useful?
Is there a chance that Chrome headless can suffer from ERR_INSUFFICIENT_RESOURCES
and the browser would hang forever, reach the Karma timeouts and then fail the tests?