Every time I try to run lein cljsbuild once
I get an error:
Could not write JavaScript nil
Any thoughts or ideas would be appreciated as I have been stuck on this for a while and unfortunately cannot go any further.
Here is what I have been doing.
- Create a new project called finance by runnin
lein new app finance
- Update the
project.clj
file with dependencies, cljsbuild, plugin and main spec(see below) - Run
lein deps
and this works. - Run
lein run
and that also works, spitting out 'Hello World' in the console. Try to run
lein cljsbuild once
and then I get this error thatCould not write JavaScript nil
(defproject finance "0.1.0-SNAPSHOT" :description "FIXME: write description" :plugins [[lein-cljsbuild "1.1.7"]] :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.10.238"] [reagent "0.8.0-alpha2"]] :main ^:skip-aot finance.core :target-path "target/%s" :profiles {:uberjar {:aot :all}} :cljsbuild { :builds [{ :source-paths ["src"] :compiler { :output-to "resources/public/javascripts/dev.js" :output-dir "resources/public/javascripts/cljs-dev" :optimizations :none :pretty-print true}}]})