问题
I'm trying to run a Clojure uberjar on Heroku that uses Spec, but it throws:
2018-03-15T09:57:33.361093+00:00 app[web.1]: at clojure.lang.Var.invoke(Var.java:381) 2018-03-15T09:57:33.361140+00:00 app[web.1]: at clojure.lang.RT.doInit(RT.java:487) 2018-03-15T09:57:33.361173+00:00 app[web.1]: at clojure.lang.RT.(RT.java:336) 2018-03-15T09:57:33.361282+00:00 app[web.1]: at clojure.main.(main.java:20) 2018-03-15T09:57:33.361572+00:00 app[web.1]: Caused by: java.lang.RuntimeException: Unable to resolve symbol: bigdec? in this context, compiling:(clojure/spec/gen/alpha.clj:132:4)
I think this is related to the alpha-ness of Spec, but I don't know which versions I'm supposed to bump.
回答1:
bigdec?
was removed before 1.9 got released:
https://dev.clojure.org/jira/browse/CLJ-2259
Are you using an older version of Spec together with clojure 1.9 proper?
来源:https://stackoverflow.com/questions/49297427/clojure-and-spec-on-heroku-unable-to-resolve-symbol-bigdec