Re: deps.js in cljsbuild?
Mefesto's solution is correct. I wrote a brief justification for why you need to set CLOSURE_NO_DEPS=true in lein-cljsbuild's simple example: https://github.com/emezeske/lein-cljsbuild/blob/master/example-projects/simple/src-clj/example/views.clj#L8 On Monday, May 14, 2012 6:21:06 AM UTC-7, Murtaza Husain wrote: Hi, I am using lein-cljsbuild to compile the cljs code. I see reference to a deps.js file that is added after the tag in which I have included the generated js file. The browser naturally fails to find the file as it does not exist. What is the deps.js file and how do I resolve its 404 error? Thanks, Murtaza -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
deps.js in cljsbuild?
Hi, I am using lein-cljsbuild to compile the cljs code. I see reference to a deps.js file that is added after the tag in which I have included the generated js file. The browser naturally fails to find the file as it does not exist. What is the deps.js file and how do I resolve its 404 error? Thanks, Murtaza -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: deps.js in cljsbuild?
I think the current fix is to add this JS declaration before you import your cljs generated js file. IIRC, this is only needed when building without advanced optimizations. script type=text/javascript var CLOSURE_NO_DEPS = true; /script script type=text/javascript src=js/myapp.js/script AJ On Mon, May 14, 2012 at 9:21 AM, Murtaza Husain murtaza.hus...@sevenolives.com wrote: Hi, I am using lein-cljsbuild to compile the cljs code. I see reference to a deps.js file that is added after the tag in which I have included the generated js file. The browser naturally fails to find the file as it does not exist. What is the deps.js file and how do I resolve its 404 error? Thanks, Murtaza -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com 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 post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en