My pleasure 🙂


How would one print detailed compile errors? I’m seeing [Figwheel:WARNING] Could not Compile: Call to clojure.core/defn did not conform to spec. /path/to/file.cljs but can’t seem to find any more details


hm. I didn’t figure out how to find the logs, but did find that the error wasn’t in the file that was printed, but rather in a clj file referenced by the cljs file

kah0ona 2019-10-14T14:47:39.010300Z

Hello friends, Somehow I get served (against expectations) the Figwheel Default Dev Page, whilst I serve an index.html (albeit dynamically from compojure, but that works in a different project too)

kah0ona 2019-10-14T14:48:17.010800Z

I checked out the figwheel-main code, and I see that this page is inserted here if this holds:

kah0ona 2019-10-14T14:49:38.011900Z

ie., if on that path in the config there ’s nothing, it inserts that. question is, why isn’t there anything? I use M-x cider-jack-in-clj&cljs, this works in a different project with roughly the same deps, but somehow not here

kah0ona 2019-10-14T14:49:56.012300Z

any insights would be greatly appreciated

kah0ona 2019-10-14T14:50:13.012600Z

it’s a Ring stack, with ring 1.7.1

kah0ona 2019-10-14T14:52:10.013100Z

in the logs I do see that the ring server is started, ie. i see the handler being called, but somehow this middleware is inserted

kah0ona 2019-10-14T14:53:59.013200Z

          (fn [sah]
            (if sah
              #(-> %
                   (helper/extra-main-hosting extra-mains-name->output-to)
                    (if (and (:modules options)
                             (:output-dir options))
                      {:output-to (str (io/file (:output-dir options) "cljs_base.js"))}
                      (select-keys (:options cfg) [:output-to])))))))))

kah0ona 2019-10-14T14:58:05.013800Z

which prevents showing my index, and it shows the default figwheel dev page instead… 😞

kah0ona 2019-10-14T15:00:49.014200Z

I’m using figwheel-0.2.1-SNAPSHOT, have tried others to no avail