This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-29
Channels
- # adventofcode (9)
- # announcements (2)
- # aws (78)
- # babashka (55)
- # beginners (97)
- # biff (9)
- # calva (11)
- # cherry (2)
- # cider (8)
- # clerk (7)
- # clj-kondo (6)
- # clj-on-windows (4)
- # clojure (213)
- # clojure-austin (6)
- # clojure-europe (63)
- # clojure-nl (1)
- # clojure-norway (5)
- # clojure-spec (10)
- # clojure-uk (1)
- # clojurescript (14)
- # clr (2)
- # community-development (3)
- # conjure (14)
- # datomic (2)
- # deps-new (5)
- # dev-tooling (10)
- # editors (3)
- # emacs (3)
- # etaoin (19)
- # events (4)
- # fulcro (71)
- # holy-lambda (20)
- # java (3)
- # jobs (2)
- # leiningen (4)
- # lsp (24)
- # malli (15)
- # membrane (107)
- # music (1)
- # off-topic (29)
- # pedestal (4)
- # polylith (1)
- # portal (2)
- # rdf (5)
- # releases (7)
- # scittle (5)
- # shadow-cljs (8)
- # tools-build (15)
- # tools-deps (6)
- # xtdb (13)
Hey I’m having a weird issue running karma tests with a shadow-cljs project in github actions and wondering if anyone here has ran in to the same issue. Currently if I initialise my app locally from scratch and run turns out we had used npm install
and npx shadow-cljs compile app
and npx karma start --single-run
the tests fail preceded by warnings of Use of undeclared Var cljs.test/test-var
. But if the compile app is ran twice the test succeeds which is really strange to me.require-macros
instead of :require
for cljs.test in the test namespace. This was just a really weird interaction that took way too long to debug 😄
Seeing some very interesting behavior with shadow-cljs 2.20.12 and @material-ui/[email protected]
.
Both of these items work just fine in :require
:
["@material-ui/core/Button" :default Button]
["@material-ui/core/Button$default" :as Button]
But if I replace Button
with Box
, only the first import will work. Or rather, the component itself will work. The second import will produce cljs.core/Box
instead of that MUI Box.If I import ["@material-ui/core/Box" :default Box]
then Box
becomes what I expect it to be.
If I import ["@material-ui/core/Box$default" :as Box]
then Box
is cljs.core/Box
.
Adding Box
to :refer-clojure :exclude
seems to fix it. But there's also no warning about Box
shadowing if I don't do that.