I have started a somewhat modified Chestnut-based project called vinculum (repo – I know some parts of the code are horrible and that nothing is finished -- please bear with me, I am learning!). The web ui builds and loads fine in the development environment, but the Clojurescript code is not compiled properly when I enable the production env. When I browse to the server URL, I get a blank page and a console error: "Uncaught ReferenceError: goog is not defined" after following the standard build instructions. Clearly, the ClojureScript code is not compiling as it should.
The output from the uberjar build is also missing some of the outputs from the ClojureScript compilation:
% lein with-profile -dev,+production uberjar
These lines are missing compared to what is shown during the same process for a default empty Chestnut project:
Compiling "resources/public/js/app.js" from ("src/cljs" "env/prod/cljs" "env/prod/cljs")...
Successfully compiled "resources/public/js/app.js" in 27.937 seconds.
The non-clojurescript code builds and runs fine, from what I can tell, and nothing seems to be missing from my project.clj. Clearly I am missing something trivial, but I cannot figure out what. Any clues? Thanks!