@nathanmarz we can check by the output that its using the clj version, so its a fact that the JS out is using the CLJ version, macros sometimes are confusing on CLJS side, IME what works best is separate clj and cljs macros in different namespaces (both been .clj
) and conditionally import then, this usually works with the least surprises
example code in pathom doing this: https://github.com/wilkerlucio/pathom/blob/master/src/com/wsscode/pathom/connect.cljc#L9-L12
👋 Hi everyone, can anyone tell me how to :require
individual navigators? (e.g., MAP-KEYS
)
in clojurescript
It seems to work using
(:require [com.rpl.specter :refer [MAP-VALS MAP-KEYS] :refer-macros [select transform traverse setval]])
but Intellij no likey, no big deal as long as I'm not "doing it wrong" ™️Are you doing this in Clojure or ClojureScript? If the former the :refer-macros does not make sense. If the latter (cljs), then this looks correct. In Clojure you can just refer the macros in the :refer vector.
cljs, yes
Not sure how intellij (Cursive??) works with CLJS...
Cursive, yes
I don't use Cursive, but in emacs I do that sort of thing all the time with no problems
sweet
in cljs?
Yes, in cljs
thank you sir
So, it probably is some limitation / issue with Cursive and CLJS
yep, no worries, as long as I'm not doing it incorrectly 😉