Fork me on GitHub
#expound
<
2020-06-23
>
jjttjj15:06:28

I keep getting the error

s.replace is not a function
When using expound from cljs. Pointing to this line: https://github.com/bhb/expound/blob/3686814d8d060002968a98d7df4d8554c279e077/src/expound/printer.cljc#L201 Any ideas what might be causing this

jjttjj15:06:55

I'm using self hosted cljs, would that be the problem?

bbrinck15:06:48

Interesting! I wonder if you can reproduce without expound just by calling https://clojuredocs.org/clojure.string/replace ?

bbrinck15:06:54

I wonder if you have to do something special for self-hosted CLJS to get the string namespace?

jjttjj15:06:05

It seems like I have no problem calling

(clojure.string/replace "hi" "h" "x")

jjttjj15:06:46

I have a hunch it's not actually related to self host but rather what I'm printing maybe? (deepliy nested map of a lot of different things). Will try to make a minimal repro a little later just wanted to check if that seemed like a familiar error