OK, I found the cause of the error. In a dependent namespace, I had defined some schemas:
(ns tupelo.schema "Prismatic Schema type definitions" (:require [schema.core :as s]) #?(:clj (:import [java.util HashSet] )) #?(:clj (:gen-class))) (def Set "Either a Clojure hash-set or a java.util.HashSet" (s/either #{s/Any} *#?(:clj* java.util.HashSet*)*)) ; <= *This was missing the #?(:clj ...)* and caused the error On Sun, Nov 4, 2018 at 9:43 PM Alan Thompson <clooj...@gmail.com> wrote: > I am seeing the following errors in CLJS, but not in CLJ: > > ERROR in (dotest-line-695) (schema/core.js:33:64) > expected: (clojure.core/= (t/thru 9) (t/glue-rows data)) > actual: #object[Error Error: No protocol method Schema.spec defined for > type undefined: ] > > > The errors disappear if I remove Plumatic Schema elements of the function > definition: > > ; this one produces the error in clojurescript (clojure runs fine) > (s/defn glue-rows :- tsk/List > [coll-2d :- tsk/List] > ... > > ; this one works fine in both clojure and clojurescript > (s/defn glue-rows :- tsk/List > [coll-2d :- tsk/List] > ... > > > Any clues as to the cause of this behavior? > Alan > > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.