Fork me on GitHub
#shadow-cljs
<
2021-09-08
>
thheller01:09:05

@fredrik245 the same as any other npm package. npm install it and then require it properly. https://shadow-cljs.github.io/docs/UsersGuide.html#npm reference the translation table to translate JS examples to CLJS

Franklin07:09:56

I'm having some trouble using clojure.spec on the repl

cljs.user=> (require '[clojure.spec.alpha :as s])
nil
cljs.user=> (require '[clojure.spec.gen.alpha :as gen])
nil
cljs.user=> (gen/generate (s/gen int?))

Execution error (Error) at (<cljs repl>:1).
Var clojure.test.check.generators/simple-type-printable does not exist, clojure.test.check.generators never required
:repl/exception!

Franklin07:09:34

I have added [org.clojure/test.check "1.1.0"] to the :dependencies vector. is there anything I'm missing?

borkdude07:09:40

Do what the error message tells you: require the namespace first

👍 2