Hi,
I'm seeing some strange behavior trying to start a cljs project. I'm using
a deps.edn file, and if set the path to something like `:paths
["src/clj"]`, then the cljs compiler can't find local dependencies. For
example, a project with this in deps.edn this will fail to compile:
{:paths ["src/clj"]
:deps {
org.clojure/clojurescript {:mvn/version "1.10.439"}
hello2 {:local/root "/Workspace/hello2"}
}}
But if I change the path to "src", and of course move the source code of
course, it works.
The error in the first case is:
$ clj --main cljs.main --compile hello1.core
[...]
Caused by: clojure.lang.ExceptionInfo: No such namespace:
hello2-lib.core, could not locate hello2_lib/core.cljs,
hello2_lib/core.cljc, or JavaScript source providing "hello2-lib.core"
(Please check that namespaces with dashes use underscores in the
ClojureScript file name) in file /Workspace/hello1/src/clj/hello1/core.cljs
{:tag :cljs/analysis-error}
It can't find the namespace define in the hello2 library.
Rob
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/clojurescript.