This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-01
Channels
- # announcements (23)
- # babashka (66)
- # babashka-sci-dev (7)
- # beginners (24)
- # biff (2)
- # calva (19)
- # cider (10)
- # clj-kondo (12)
- # cljs-dev (3)
- # cljsrn (2)
- # clojure (37)
- # clojure-art (1)
- # clojure-europe (50)
- # clojure-gamedev (1)
- # clojure-nl (1)
- # clojure-norway (22)
- # clojure-uk (7)
- # clojurescript (6)
- # conjure (28)
- # cursive (19)
- # data-science (11)
- # fulcro (21)
- # holy-lambda (12)
- # honeysql (6)
- # hyperfiddle (2)
- # jobs (1)
- # lsp (5)
- # malli (4)
- # meander (3)
- # missionary (8)
- # nbb (5)
- # off-topic (39)
- # rdf (9)
- # reitit (1)
- # releases (1)
- # sci (21)
- # shadow-cljs (42)
- # specter (1)
- # xtdb (11)
Hey all. I was wondering if it is possible to use https://github.com/bensu/doo together with shadow-cljs? I'm getting errors running lein doo
about React components from node_modules
being not found, so I'm suspecting it's not
Is there some kind of lein plugin that'll make the whole testing thing - build the JS and run it with pre-configured runner? So that one does not have to run bunch of npx
commands (well, actually 2, but still š
)
I'm using karma as well, but to run tests I've made shell script which does
npx shadow-cljs compile test
npx karma start --single-run
Is there a way to achieve similar outcome from within lein
?..What I mean is it'd be great to have a single entrypoint (a single command) to kick off the test run
I mean there are gazillion tools to solve that issue? Just a Makefile
or npm "scripts"
or whatever
Right. I ended up writing bb.edn
to solve it with babashka š
Thanks for the pointers!
getting the following error in 2.19.5
, is that known?
Syntax error compiling at (shadow/build/data.clj:360:5).
No such var: ana/get-data-readers
Including [org.clojure/tools.analyzer "1.1.0"]
on the clojure side of deps (in project.clj) solves it for me.
I'm guessing you are using deps.edn or project.clj? make sure you have the proper matching clojurescript versions?
And on Clojurescript it's https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/analyzer.cljc, right, not a separate lib?
I run shadow-cljs watch app --debug
and get runtime error in console without lineNumber and filename, is it possible to configure shadow-cljs to see it?
Added some compiler options, but it doesn't help
:dev {:closure-defines {"re_frame.trace.trace_enabled_QMARK_" true}
:compiler-options {:source-map true
:pseudo-names true
:pretty-print true}
}
typically that error suggests that you are either not passing an argument you are supposed to pass
but you are maybe passing something else or just nil. looking at the code may suggest what might be wrong
I found the error in re-frame event handler, but I want to configure error message, if it possible, to easy find such errors
Accidentally posted this in CLJS, but it belongs here. Sorry for the xpost. Howdy! Is there a simple way to do conditional code evaluation based on build id and not target? Iād like to evaluate code differently for different builds that have the same targetā¦ Something like. (:require #?(:build-1 [my.app.molecules.build-1] :other-build [my.app.molecules.other])) Where both namespaces contain the same vars, but different logic, yet both are for the same target env. Itās not the end of the world if I canāt, just curious.
Oh, I get it! reader-features is open to anything. Cool feature!
hello, I have a project that is a library, I would like to make sure all the cljs
and cljc
files compile file, using the :target :browser
I have to use the :entries
to find the namespaces, but I would like for shadow to find all cljs
and cljc
files and try to compile all of then, what kind of build setup I can use to make this?
I guess if you only want to compile all and don't actually care about the output :npm-module
is best? you can set a :ns-regexp "your.library"
or whatever which will end up including all namespaces matching that?
FIX: Not a shadow issue. This error is caused by running āamplify pullā using AWS Amplify. Check your includes, make sure youāve pulled and that the pulled file is in the correct location in relation to your require.
Iām having issues with my shadow config. Iām using version ā2.19.5ā with all the important deps matching clojars as outlined in https://shadow-cljs.github.io/docs/UsersGuide.html#failed-to-load
Iām getting this error while running release.
[:main] Compiling ...
Execution error (AssertionError) at shadow.build.resolve/maybe-babel-rewrite (resolve.clj:205).
Assert failed: (map? rc)
My instincts tell me it has something to do with webpack. But Iām lost. I remember having the same error once before and the solve being super simple, small, and dumb. But for the life of me I canāt remember what it was. Any help is BIG THANKS! CHEERS!