This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-19
Channels
- # adventofcode (36)
- # asami (3)
- # babashka (22)
- # beginners (65)
- # calva (5)
- # clj-kondo (1)
- # cljs-dev (3)
- # clojure-europe (1)
- # clojurescript (3)
- # conjure (1)
- # core-async (6)
- # datomic (3)
- # emacs (4)
- # introduce-yourself (3)
- # juxt (11)
- # lsp (64)
- # malli (10)
- # missionary (11)
- # music (1)
- # off-topic (2)
- # pathom (1)
- # practicalli (1)
- # reagent (6)
- # reitit (3)
- # releases (3)
- # xtdb (9)
java.lang.RuntimeException: Unable to resolve symbol: qualified-keyword? in this context, compiling:(malli/core.cljc:167:51)
Hi all:
I have run into this error last week, at the beginning lein clean
would resolve the issue but now our clojurescript project would not compile with malli
.
If we add malli
to our dependencies in project.clj
and require malli.core
the compiler spits out the aforementioned error. Is there a minimum clojure/clojurescript version?
this is our versions:
[org.clojure/clojurescript "1.10.439"]
[org.clojure/clojure "1.8.0"]
Thank you 🙏Qualified-keyword? was added in 1.9
wow, thank you for pointing it out (I am new to clojure) so I wonder why it worked in the 1st place
Well, you have the Cljs 1.10 so that does have qualified-keyword. If you aren't using Malli in Clojure side, the problem could be macro use from Cljs and perhaps you changed something that caused Malli to be required in Cljs macro compilation time (so in Clj side)?
And btw. Malli requires 1.10, there is another case why 1.9 isn't enough.
Readme mentions 1.10 now
Well I came into the company half a year ago, I was doing typescript before... So I didn't touch anything related to the config
The code base is immense I thought using some schemas can help and malli was recommended to me over spec
released [metosin/malli "0.7.5"]
, a fifth patch since 0.7.0, accumulated changes:
• https://github.com/clj-kondo/clj-kondo/blob/master/CHANGELOG.md#20211216 can load malli type configs automatically from new location (`.clj-kondo/metosin/malli-types/config.edn`), thanks @borkdude.
• use https://github.com/brandonbloom/fipp for fast pretty-printing the clj-kondo configs
• updated dependencies
• schema inferring supports value decoding via options
• :map-of
 inferring can be forced with `:malli.provider/hint :map-of` meta-data
• :tuple
 inferring (supports type-hints and threshold options)
• FIX Function with Sequential return value cannot define as function schema
• FIX `decimal?` predicate schema was removed in 0.7.0