Fork me on GitHub
#datomic
<
2019-07-04
>
ivana12:07:37

Hello. I try to run figwheel project from re-frame template, everything works fine until I add datomic to deps. In this case lein figwheel dev falls with

Figwheel: Cutting some fruit, just a sec ...
Syntax error (NoSuchMethodError) compiling at (figwheel_sidecar/repl.clj:1:1).
com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;)V
I tried to exclude some and set exact versions (I found this in internet)
[com.datomic/datomic-pro "0.9.5927"
                  :exclusions
                  [org.eclipse.jetty/jetty-http
                   org.eclipse.jetty/jetty-util
                   org.eclipse.jetty/jetty-client
                   org.eclipse.jetty/jetty-io]]
                 ;; directly specify all jetty dependencies
                     ;; ensure all the dependencies have the same version
                 [org.eclipse.jetty/jetty-server                "9.4.12.v20180830"]
                 [org.eclipse.jetty.websocket/websocket-servlet "9.4.12.v20180830"]
                 [org.eclipse.jetty.websocket/websocket-server  "9.4.12.v20180830"]
but the problem still the same. What can I do?

souenzzo12:07:31

@ivana both #datomic and #clojurescript use guava lib https://mvnrepository.com/artifact/com.google.guava/guava Usually, clojurescript version is higher then datomic version Ignore it on datomic should fix

👍 4
ivana13:07:21

Thanks alot!

:exclusions [com.google.guava/guava]
solves the problem!