1) The main js file is empty because of the closure compiler error. The circular dependency is somewhere in your code, usually :none should detect it as well but difficult to tell without the source.
2) I do not think the cljsbuild config should be in a profile. https://www.refheap.com/96682 Try defining a :dev and :prod build and then run lein with-profile prod cljsbuild once prod or in dev lein cljsbuild auto dev HTH, /thomas On Friday, January 30, 2015 at 9:30:41 AM UTC+1, Andrew S wrote: > I need another set of eyes on this to see what I'm doing wrong. This is my > project.clj: > > https://www.refheap.com/96680 > > At the command line, I do this: > > lein with-profile prod cljsbuild once > > It does a number of things that are apparently not right: > > 1) It spits out the main js file that only has this in it: > > ;(function(){ > > })(); > > 2) It still generates an out/ dir with separate js files for each cljs > namespace. > > 3) The compiler gives me a circular dependency error when there is none in my > code, and the :none optimizations work fine. The error says this: > > Jan 30, 2015 9:24:51 AM com.google.javascript.jscomp.LoggerErrorManager > println > SEVERE: ERROR - Circular dependency detected: appjs.session -> appjs.session > > Jan 30, 2015 9:24:51 AM com.google.javascript.jscomp.LoggerErrorManager > printSummary > WARNING: 1 error(s), 0 warning(s) > ERROR: JSC_CIRCULAR_DEP. Circular dependency detected: appjs.session -> > appjs.session at (unknown source) line (unknown line) : (unknown column) > > I'm sure I'm doing something obvious, if anyone can tell what it is, let me > know. Leiningen is a bit of a mystery to me. > > Andrew > > -- > hellofunk -- 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 clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.