This one has got me scratching my head. I have a clojurescript/re-frame/electron project running. So far it is fairly basic, I’m just working on getting all the various pieces to play nicely together. At some point the automatic refresh stopped working. I didn’t notice at first because the compile was working fine. It wasn’t until I started to wonder why I was having to refresh the electron window manually when figwheel ought to be doing it for me that I realised something was amiss and had a look at the console and found the error.
I have ruled out emacs/cider. It does the same from lein figwheel. So… before I tear it all down and start again (again), has anyone seen an error like this before? This is what appears in the js console when the figwheel triggered reload tries to run:
ioc_helpers.cljs:42 Uncaught TypeError: goog.net.jsloader.load is not a function
at figwheel$client$file_reloading$reload_file_in_html_env (file_reloading.cljs:208)
at figwheel$client$file_reloading$reload_file (file_reloading.cljs:250)
at figwheel$client$file_reloading$blocking_load (file_reloading.cljs:269)
at file_reloading.cljs:279
at file_reloading.cljs:277
at figwheel$client$file_reloading$state_machine__12212__auto____1 (file_reloading.cljs:277)
at figwheel$client$file_reloading$state_machine__12212__auto__ (file_reloading.cljs:277)
at cljs$core$async$impl$ioc_helpers$run_state_machine (ioc_helpers.cljs:35)
at cljs$core$async$impl$ioc_helpers$run_state_machine_wrapped (ioc_helpers.cljs:39)
at ioc_helpers.cljs:48