This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-05
Channels
- # adventofcode (50)
- # announcements (1)
- # asami (29)
- # babashka (56)
- # beginners (19)
- # calva (62)
- # cider (12)
- # cljs-dev (1)
- # clojure (42)
- # clojure-europe (214)
- # clojure-france (4)
- # clojure-italy (1)
- # clojurescript (58)
- # community-development (4)
- # cryogen (6)
- # cursive (7)
- # data-science (1)
- # events (3)
- # figwheel-main (1)
- # fulcro (21)
- # lambdaisland (3)
- # malli (17)
- # mid-cities-meetup (1)
- # off-topic (38)
- # pathom (3)
- # reagent (7)
- # reclojure (1)
- # reveal (15)
- # rewrite-clj (11)
- # shadow-cljs (30)
- # sql (21)
- # test-check (14)
- # tools-deps (1)
- # vim (21)
- # xtdb (5)
Hello! Do I need to add this exclusion to the reagent dependency if I want to use npm dependencies? I've read that cljsjs doesn't play along with npm
:exclusions [cljsjs/react cljsjs/react-dom]
The thing is, when I do add the exclusion I get errors like this: goog.require could not find: react_dom
I'm using figwheel which seems to also support NPM packages https://figwheel.org/docs/npm
I'm mainly asking this because after I added npm dependencies I can no longer use reagent
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