bhauman / figwheel-main

Figwheel Main provides tooling for developing ClojureScript applications
https://figwheel.org
Eclipse Public License 1.0
640 stars 93 forks source link

NPM packages do not work with reagent #277

Closed GoncaloGarcia closed 3 years ago

GoncaloGarcia commented 3 years ago

Hello! I recently started using figwheel with npm packages and I'm having trouble with reagent. As soon as I followed this guide https://figwheel.org/docs/npm my reagent code stopped working with the error below. Any ideas what might be causing this?

Uncaught TypeError: Cannot read property 'render' of undefined
    at reagent$dom$render_comp (dom.cljs:20)
    at Function.cljs$core$IFn$_invoke$arity$3 (dom.cljs:50)
    at reagent$dom$render (dom.cljs:29)
    at Function.cljs$core$IFn$_invoke$arity$2 (dom.cljs:29)
    at reagent$dom$render (dom.cljs:29)
    at goodstats$index$init_BANG_ (index.cljs:36)
    at index.cljs:38
GoncaloGarcia commented 3 years ago

Could not solve and ended up migrating to shadow-cljs