ClojureScript reader 标记文字未绑定 fn 错误
ClojureScript reader tagged literals undbound fn error
我正在尝试在 cljs 上使用标记的文字未来。我创造了
以下 data_readers.clj
{dbz/l debuz.utils/cmlog}
并且在 src/debuz/core.cljs 中我需要包含 cmlog 函数的文件:
(ns debuz.core
(:require [debuz.utils]))
然后用这行代码测试
#dbz/l "This text is printed from src/debuz/core.cljs. Go ahead and edit it and see reloading in action."
我收到未绑定的 fn 错误:
#dbz/l "This text is printed from src/debuz/core.cljs. Go ahead and edit it and see reloading in action."
^--- 尝试调用未绑定的 fn:#'debuz.utils/cmlog
暗示 debuz.utils 不是必需的?
我在这里错过了什么?
我用的是最新的图轮模板
https://dev.clojure.org/jira/browse/CLJS-1194
应该重命名为 data_readers.cljc
我正在尝试在 cljs 上使用标记的文字未来。我创造了 以下 data_readers.clj
{dbz/l debuz.utils/cmlog}
并且在 src/debuz/core.cljs 中我需要包含 cmlog 函数的文件:
(ns debuz.core (:require [debuz.utils]))
然后用这行代码测试
#dbz/l "This text is printed from src/debuz/core.cljs. Go ahead and edit it and see reloading in action."
我收到未绑定的 fn 错误:
#dbz/l "This text is printed from src/debuz/core.cljs. Go ahead and edit it and see reloading in action." ^--- 尝试调用未绑定的 fn:#'debuz.utils/cmlog
暗示 debuz.utils 不是必需的?
我在这里错过了什么?
我用的是最新的图轮模板
https://dev.clojure.org/jira/browse/CLJS-1194
应该重命名为 data_readers.cljc