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,
:message
"Wrong number of args (3) passed to: clojure.lang.Symbol at line 1 /Users/danie/matter/source/cljs-config/src/warning_handlers.cljs",
:data
{:file
#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