Clojurescript库-goog.require找不到 [英] Clojurescript libraries - goog.require could not find
问题描述
clojurescript的新手,并通过现代CLJS"教程进行操作此处.
New to clojurescript, and working through the "Modern CLJS" tutorial here.
它指示将 domina 添加到project.clj
:
:dependencies [[org.clojure/clojure "1.4.0"]
[compojure "1.1.5"]
[domina "1.0.0"]]
然后以ns
形式引用它在脚本中使用
And then use it in your script by referencing it in the ns
form
(ns cljstut.login
(:use [domina :only [by-id value]]))
但是,当我实际上在浏览器中运行它时,我会在控制台日志中看到以下内容.
However, when I actually run this in a browser, I see the following in the console log.
goog.require could not find: domina
好像我在某处缺少一些声明?但是作为一个新手,整个构建过程是相当不透明的.任何疑难解答提示都将不胜感激.
Seems like I'm missing some declaration somewhere? But as a newb, this whole build process is rather opaque. Any troubleshooting tips are greatly appreciated.
推荐答案
此外,请确保已保存project.clj
文件并尝试运行lein clean
和lein cljsbuild clean
.
Also, make sure you have saved your project.clj
file and try running lein clean
and lein cljsbuild clean
.
这篇关于Clojurescript库-goog.require找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!