我有 .cljc 文件在 JVM Clojure 中运行良好,但在 ClojureScript 中却出现了这个错误
---- Could not Analyze src/cljc/zm/ops1OP.cljc line:1 column:1 ----
Don't know how to create ISeq from: clojure.lang.Keyword
1 (ns zm.ops1OP
^--- Don't know how to create ISeq from: clojure.lang.Keyword
2 "1OP operations"
3 #?(:cljs (:require-macros (link: zm.util :refer [v4-5)]))
4 (:require (link: zm.memory :refer :all)
---- Analysis Error : Please see src/cljc/zm/ops1OP.cljc ----
问题是 :refer :all,错误消息在事后看来是有道理的,但 CLJS 在指出这个错误方面可以做得更好。