AndreaCrotti / elo

Elo ranking platform implemented in Clojure and re-frame
Eclipse Public License 1.0
19 stars 8 forks source link

Error on figwheel reloading #67

Closed AndreaCrotti closed 6 years ago

AndreaCrotti commented 6 years ago

When figwheel reloads we always get this erro

template.cljs?rel=1538752159080:302 Uncaught Error: Assert failed: Invalid Hiccup form: [({:file "resources/public/js/compiled/out/elo/league_detail/handlers.js", :namespace "elo.league_detail.handlers", :type :namespace, :loaded-file true} {:file "resources/public/js/compiled/out/elo/league_list/handlers.js", :namespace "elo.league_list.handlers", :type :namespace, :loaded-file true} {:file "resources/public/js/compiled/out/elo/league_detail/views.js", :namespace "elo.league_detail.views", :type :namespace, :loaded-file true} {:file "resources/public/js/compiled/out/elo/league_list/views.js", :namespace "elo.league_list.views", :type :namespace, :loaded-file true} {:type :namespace, :namespace "elo.core", :loaded-file true})]

(valid-tag? tag)
    at reagent$impl$template$vec_to_elem (template.cljs?rel=1538752159080:302)
    at reagent$impl$template$as_element (template.cljs?rel=1538752159080:329)
    at f (dom.cljs?rel=1538752159123:53)
    at reagent$dom$render_comp (dom.cljs?rel=1538752159123:30)
    at Function.reagent.dom.render.cljs$core$IFn$_invoke$arity$3 (dom.cljs?rel=1538752159123:54)
    at reagent$dom$render (dom.cljs?rel=1538752159123:41)
    at Function.reagent.dom.render.cljs$core$IFn$_invoke$arity$2 (dom.cljs?rel=1538752159123:49)
    at reagent$dom$render (dom.cljs?rel=1538752159123:41)
    at Function.reagent.core.render.cljs$core$IFn$_invoke$arity$2 (core.cljs?rel=1538752159213:75)
    at reagent$core$render (core.cljs?rel=1538752159213:66)
    at Function.elo$core$mount_root (core.cljs?rel=1538836302717:36)
    at Function.cljs.core.apply_to_simple.cljs$core$IFn$_invoke$arity$3 (core.cljs:3862)
    at Function.cljs.core.apply_to_simple.cljs$core$IFn$_invoke$arity$2 (core.cljs:3857)
    at Function.cljs.core.apply.cljs$core$IFn$_invoke$arity$2 (core.cljs:3892)
    at cljs$core$apply (core.cljs:3883)
    at G__41414__delegate (connect.cljs?rel=1538752180344:9)
    at Function.figwheel.connect.start.cljs.core.PersistentArrayMap.G__41414.cljs$lang$applyTo (connect.cljs?rel=1538752180344:9)
    at Function.cljs.core.apply.cljs$core$IFn$_invoke$arity$2 (core.cljs:3891)
    at cljs$core$apply (core.cljs:3883)
    at file_reloading.cljs?rel=1538752179586:458
AndreaCrotti commented 6 years ago

Fixed with https://github.com/AndreaCrotti/elo/pull/68