-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Miraculously disappearing dependencies when using lein cljsbuild auto. #493
Comments
@art-solopov I ran into something similar, except I get a different error, like invalid nameToPath or something. On first compilation, the dependency is required in This isn't a fix for this exact problem, but as an alternative to Leiningen/cljs-build, you can use deps.edn and the ClojureScript compiler directly. The ClojureScript compiler appears to offer the same auto functionality as this plugin. Here is a basic example I drafted:
Update 2019-07-14 I believe I've narrowed down the issue to the use of I am not very familiar with Clojurescript or lein-cljsbuild code but my guess is that the compiler depends on Related initial commit: Related update: These are from 5-6 years ago. It says Clojurescript was version 0.0-2197 in one commit message... |
This has bit my as well. I can't quite figure out how to move of leiningen and achieve this same configuration with |
I'm trying to write my first ClojureScript project using NPM dependencies.
Here's my project.clj file:
And here is my src-cljs/core.cljs file:
When I compile it with
lein cljsbuild once
, everything seems okay. However, when I try runninglein cljsbuild auto
, it loses the momentjs. I get this error:Error: goog.require could not find: module$home$art_solopov$Projects$cljsplay$node_modules$moment$moment
And indeed, when I check the resulting bundle, there is no trace of actual moment.js library.
The text was updated successfully, but these errors were encountered: