This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-26
Channels
- # adventofcode (2)
- # announcements (9)
- # bangalore-clj (1)
- # beginners (158)
- # calva (32)
- # cider (2)
- # clara (4)
- # cljdoc (40)
- # cljs-dev (3)
- # cljsrn (6)
- # clojure (45)
- # clojure-brasil (2)
- # clojure-dev (35)
- # clojure-europe (9)
- # clojure-italy (7)
- # clojure-nl (2)
- # clojure-uk (29)
- # clojurescript (144)
- # code-reviews (3)
- # core-logic (9)
- # cursive (11)
- # datascript (8)
- # datomic (9)
- # duct (1)
- # figwheel (6)
- # fulcro (11)
- # hyperfiddle (27)
- # kaocha (23)
- # luminus (1)
- # off-topic (7)
- # onyx (2)
- # pathom (3)
- # re-frame (61)
- # reagent (12)
- # remote-jobs (10)
- # shadow-cljs (40)
- # spacemacs (4)
- # sql (27)
- # tools-deps (6)
- # unrepl (3)
- # vim (47)
I'm using shadow-cljs with this settings but:
- I get No app connected.
in Fulcro Inspect
tab on console
- after-load
dont call cljs.user/on-jsload
after load
https://github.com/souenzzo/my-next-stack/blob/feature/shadow-cljs-wip/shadow-cljs.edn
@souenzzo why are you source files all over the place? kinda hard to tell whats going on
I'm guessing that you started the shadow-cljs server instance without having the webdev
profile active?
I'm using webdev profile
user.cljs
is loaded on browser and when I call cljs.user.on_jsload()
on js console it works as expected....
Hi @thheller I'm getting a strange error during optimizations java.lang.NoSuchMethodError: com.google.javascript.jscomp.AbstractCompiler.getInputsInOrder()Ljava/lang/Iterable
when releasing (even if optimization is just set to :whitespace
), I've tried using --debug
and -v
but couldn't find any clues.
can just add [com.google.javascript/closure-compiler-unshaded "v20180910"]
to your :dependencies
hmm... i'm receiving some warnings that with the latest shadow-cljs 2.7 that i don't receive with the latest 2.6. what does that mean? why does it resolve things differently?
@arne-clojurians it doesn't resolve things differently. it just checks some extra things it didn't previously check.
I'm using webdev profile
user.cljs
is loaded on browser and when I call cljs.user.on_jsload()
on js console it works as expected....
I want to disable println for release code like this (set! *print-fn* (fn [& _]))
. What is the best way to achieve this in shadow-cljs
? In lein-cljsbuild
I've included different paths to :source-paths
which contained cljs files with build-specific commands.
@thheller can I have different :source-paths
for release
and dev
or is there any other way to inject different code for dev/release?
I also have a question regarding build report
https://shadow-cljs.github.io/docs/UsersGuide.html#_build_report . Will it build AND generate a report or it will only generate a report on an existing build?
@achikin not sure I understand the question. it will compile everything to generate the report but it will not do a full build. if that makes sense 😛
yeah its a separate step from release
as it modifies the build to ensure it can generate all the info it needs
it requires source maps for example which release builds don't have enabled by default
@souenzzo oops I forgot that all cljs.*
files are not checked for reload metadata because I assumed they would never have any
Hey all! Does shadow-cljs provide any way to access assets sometimes packaged with NPM (eg. CSS files)? If not, does anyone have any advice beyond requiring the stylesheet directly via a link tag to the node_modules?
@rschmukler not currently no. I use the node-sass
cli and just a main.scss
which directly @import "node_modules/foo/bar.scss";
Alright, thanks for the quick responses! I just ended up vendoring the file directly and included it via a link
element. We're using garden or I'd probably do the import route via sass