Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by
retagged by

This config:

{:main             warning-handlers
 :warning-handlers [cljs.analyzer/default-warning-handler]}

Which set :warning-handlers to the default as listed in https://clojurescript.org/reference/compiler-options#warning-handlers

Compiled using:

clj -M --main cljs.main --compile-opts compile.edn --compile

Fails with:

   {:type clojure.lang.ExceptionInfo,
    "Wrong number of args (3) passed to: clojure.lang.Symbol at line 1 /Users/danie/matter/source/cljs-config/src/warning_handlers.cljs",
     #object[java.io.File 0x27f8f1cc "/Users/danie/matter/source/cljs-config/src/warning_handlers.cljs"],
     :line 1,
     :column 1,
     :tag :cljs/analysis-error},
    :at [cljs.analyzer$error invokeStatic "analyzer.cljc" 780]}

Full repro here: https://github.com/danieroux/cljs-config

Please log in or register to answer this question.