Fork me on GitHub

Quick question: does generative checking work in cljs? If not, why not? If I try to write (mi/check) I get:

------ WARNING #1 - :undeclared-var --------------------------------------------
 File: /home/carlo/code/clojure/visualizerTestCljs/src/main/core.cljs:12:1
   9 | (defn badd [x y]
  10 |   "z")
  11 | 
  12 | (mi/check)
 Use of undeclared Var malli.generator/check
edit: solution in thread


Ok, it works if I manually include an import on malli.generator , even if I don't directly use the namespace. This is probably due to how shadow-cljs includes the files. I'm going to leave it here in case it's useful to someone else in the future.


I made an github issue to fix this. you shouldn't have to require that ns - I'll fix it in the coming days

😍 2