New to clojurescript, and working through the "Modern CLJS" tutorial here.
It instructs to pull in domina by adding it to the project.clj:
:dependencies [[org.clojure/clojure "1.4.0"]
[compojure "1.1.5"]
[domina "1.0.0"]]
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.
Dependencies in your
project.cljfile and your namespace declarations look fine.If you are building your clojurescript code using
lein cljsbuild auto, you will need to restart that process. I believe it should automatically pull in new dependencies after a restart.If that doesn't work, or you aren't using
lein cljsbuild auto, try running thelein depscommand inside your project's folder manually - it will fetch all missing dependencies from remote repositories.