The namespace name is not the same as the dep name.
‘require' clauses use namespace names, for example:
[cljs-time.format :as something]
You can get the namespace name from the ns form at the top of its file, e.g.,
https://github.com/andrewmcveigh/cljs-time/blob/master/src/cljs_time/format.cljs#L1
<https://github.com/andrewmcveigh/cljs-time/blob/master/src/cljs_time/format.cljs#L1>
.
—Steve
> On Dec 23, 2015, at 4:27 PM, [email protected] wrote:
>
> Noob question -- what am I doing wrong?
> lein new mies <https://github.com/swannodette/mies> hello-world ...builds fine
> add the following to project.clj's dependencies, lein deps, builds fine
> [com.andrewmcveigh/cljs-time "0.3.14"]
> add the following to src/hello_world/core.cljs's :require clause
> [com.andrewmcveigh.cljs-time.format :as something]
> Caused by: clojure.lang.ExceptionInfo: No such namespace:
> com.andrewmcveigh.cljs-time.format, could not locate
> com/andrewmcveigh/cljs_time/format.cljs,
> com/andrewmcveigh/cljs_time/format.cljc, or Closure namespace
> "com.andrewmcveigh.cljs-time.format" {:tag :cljs/analysis-error}
>
>
>
> My core.cljs file ns expression looks like this:
>
>
>
> (ns hello-world.core
> (:require [clojure.browser.repl :as repl]
> [com.andrewmcveigh.cljs-time.format :as f]))
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> <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 [email protected]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.