Fork me on GitHub
#cljsjs
<
2016-06-07
>
fdserr05:06:24

Hi there. Desperately looking for CSSTransitionGroup. My deps:

[cljsjs/react-with-addons "15.1.0-0"]
[cljsjs/react-dom "15.1.0-0"]
My requires:
[cljsjs.react]
[cljsjs.react.dom]
Trying: (def css-trans-group (-> js/React (aget "addons") (aget "CSSTransitionGroup"))). addons is undefined in either of js/React or js/ReactDOM. I am not using Om / Reagent / Sablono / NameYours at this point, so there should be no conflicting React imports? Please where have addons gone to? Thankies!

fdserr07:06:41

Removed [cljsjs/react-dom "15.1.0-0"] dep, Still have ReactDOM and React, but yet no addons, nor CSSTransitionGroup 😕

fdserr07:06:47

I'm on Figwheel, if that counts.

rohit09:06:03

@fdserr: this works for me (def css-trans-group js/React.addons.CSSTransitionGroup)

fdserr09:06:02

@rohit: great! what does your :dependencies and :require look like please?

rohit09:06:27

my :require is (:require [cljsjs.react]), and for dependency I only included [cljsjs/react-with-addons "15.1.0-0”]. obviously you’ll want to pull the react-dom as well for web stuff

fdserr09:06:56

@rohit: solved! thanks much 👍

fdserr09:06:31

Mwah =( Back to hell: Uncaught TypeError: Cannot read property 'CSSTransitionGroup' of undefined. After adding react-dom to the play. Need to engineer an :exclude I guess...

juhoteperi09:06:41

Deps tree is great help when dealing with exclusions: lein deps :tree (or something)` or boot show -d