I am reading "Living Clojure" (2014) book and it has a project called cheshire-cat
. My project.clj
file is following:
(defproject cheshire-cat "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:min-lein-version "2.0.0"
:dependencies [[org.clojure/clojure "1.6.0"]
[compojure "1.3.1"]
[ring/ring-defaults "0.1.2"]
[ring/ring-json "0.3.1"]
[org.clojure/clojurescript "0.0-2371"]
[cljs-http "0.1.18"]
[org.clojure/core.async "0.1.346.0-17112a-alpha"]
[enfocus "2.1.0"]
[javax.xml.bind/jaxb-api "2.3.1"]]
:plugins [[lein-ring "0.8.13"]
[lein-cljsbuild "1.0.3"]]
:ring {:handler cheshire-cat.core.handler/app}
:profiles
{:dev {:dependencies [[javax.servlet/servlet-api "2.5"]
[ring-mock "0.1.5"]]}}
:cljsbuild {
:builds [{
:source-paths ["src-cljs"]
:compiler {
:output-to "resources/public/main.js"
:optimizations :whitespace
:pretty-print true}}]})
When I try to start the ring server with $lein ring server
command, it gives the compiler exception error: https://pastebin.com/xJmVrJqa
How to make the ring server command work without error?