Hi all, I'm working on my first-ever ClojureScript-heavy project, and it's mostly going very well. But packaging it for deployment is causing me grief; I've clearly got something wrong in my project.clj, but I don't know what it is.
The project is here: https://github.com/simon-brooke/youyesyet The issues which I'm struggling with are as follows: When the war is packaged up with lein uberwar, the URL that's generated for base.js is wrong, and consequently the app doesn't load. If I go in and hand-hack app.js after the war has deployed, I can fix this; but that clearly isn't the right thing to do. I *think* this is probably to do with key :asset-path on the cljsbuild compiler map, but I've fiddled around with it and it still doesn't work. (issue #36 on the github project). Also, running from a packaged war, the app tries to open a figwheel connection, which of course fails. So I'm clearly not getting a production build of the app anyway. These two problems are almost certainly down to the project.clj; I'd really appreciate some advice on this. The third issue is just a development annoyance. When I run from the command line - running 'lein run' in one terminal and 'lein figwheel' in another, when I open the app URL the app fails to load; I get an error in the browser console: Uncaught Error: Assert failed: Invalid Hiccup form: [nil] (in page) (valid-tag? tag) at reagent$impl$template$vec_to_elem (template.cljs:302) at reagent$impl$template$as_element (template.cljs:329) at template.cljs:403 at core.cljs:5145 at core.cljs:5145 at cljs.core.PersistentVector.cljs$core$IKVReduce$_kv_reduce$arity$3 (core.cljs:5149) at Object.cljs$core$_kv_reduce [as _kv_reduce] (core.cljs:600) at cljs$core$reduce_kv (core.cljs:2381) at reagent$impl$template$make_element (template.cljs:401) at reagent$impl$template$native_element (template.cljs:285) However, what's bizarre is that if I then add a single new line to the end of any CLJS file and save it, figwheel recompiles the file and pushes it, and the app immediately renders. I can live with this, but I'd very much like to fix it. Any advice on any of these issues very gratefully received! -- 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 https://groups.google.com/group/clojurescript.