dscarpetti/codax

AOT causes problem with clojurescript

Closed this issue · 3 comments

When using 1.2.0-snapshot and running figwheel, I get this error :

  No reader function for tag Inf

  986  (js-mod (Math/floor o) 2147483647)
  987  (case o
  988    ##Inf
              ^--- No reader function for tag Inf
  989    2146435072
  990    ##-Inf
  991    -1048576

However, re-adding ^:skip-aot solve this.

Are you using the latest version of figwheel? I found possible reference to this issue here: https://clojurians-log.clojureverse.org/lein-figwheel/2017-10-04.html

Yes, I already tried to require [org.clojure/tools.reader "1.1.0"], but I got the same error.

I narrowed down the source of the problem to requiring both codax (with AOT) and cljs-ajax. Any of those alone is fine, but combined they produce this error.


To reproduce from a new project :

  1. lein new reagent my-project

  2. Add the following dependencies:

[codax "1.2.0"]
[cljs-ajax "0.7.3"]
  1. Run figwheel.

This is no longer an issue.
My apologies for not closing it sooner.