Closed radhikalism closed 10 years ago
Thanks for your help. There are lots of changes in lein-npm 0.4.0 and lein-bower should follow its convention so expect some extra work
I've just tried to upgrade lein-npm itself in a project of mine and it threw an "clojure.lang.PersistentVector cannot be cast to clojure.lang.Named" when lein-npm version >= 0.3.2 Haven't investigated it yet. Do you have the same problem? Or did I miss something about API changes?
That's new to me. Maybe raise an issue at lein-npm with steps to reproduce?
Wow, it turns out that when trying vinyasa
, I've added this to leiningen's profiles.clj
:dependencies key:
[leiningen #=(leiningen.core.main/leiningen-version)]
and it caused the problem above
Updated. Thanks @arbscht
Prior to lein-npm 0.3.2, only installed JARs were searched for transitive project.clj dependency settings. Leiningen "checkouts", however, were overlooked. This meant that when a checkout project's npm dependencies were updated, the downstream project would not see it until it was installed (which defeats the purpose of lein checkouts).
This affects bower dependencies too, as it relies on lein-npm to resolve transitives.
This should be fixed in lein-npm 0.3.2 with bodil/lein-npm#10. Could you bump the lein-npm dependency to it?
Thanks