This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-29
Channels
- # babashka (99)
- # beginners (47)
- # calva (28)
- # cider (5)
- # clj-kondo (5)
- # clojure (2)
- # clojure-europe (11)
- # clojure-gamedev (1)
- # clojure-norway (5)
- # clojurescript (11)
- # clr (82)
- # conjure (13)
- # cursive (3)
- # datahike (1)
- # datomic (28)
- # emacs (11)
- # fulcro (43)
- # honeysql (10)
- # interop (17)
- # keechma (3)
- # pathom (27)
- # re-frame (1)
- # reagent (3)
- # reitit (18)
- # releases (1)
- # shadow-cljs (81)
- # vim (5)
- # xtdb (3)
Hello Clojurians,
I'm working with https://github.com/clj-commons/https://github.com/clj-commons/hickory on my clojurescript code, and I have a line of code that works perfectly locally.
but when I deploy my code using( npm run release) It breaks and I get an error.
Code : (map as-hiccup (parse-fragment field))
Error: Error: No matching clause: 1
Can anyone explain why and how to fix it?
Thank you!
unclear
do you use shadow-cljs? if so you can add --pseudo-names
or --debug
to the release build to make it easier to figure out where the problem is
Ok so I added the --pseudo-names and I got
ok here's a better image of the error source
Hickory uses aget
with goog
- I bet that's the issue.
IIRC, during advanced optimizations, goog
stuff gets minified. But aget
(which is designed to work only with arrays) tries to access a non-minified field.
So that condp
above probably ends up having a bunch of undefined
as clauses instead of all those Attribute
, Comment
, etc.
Do you have any idea of how can I make it work?