Fork me on GitHub
#devcards
<
2016-02-23
>
sveri14:02:03

I am trying out devcards and as soon as I add this expression: [devcards.core :refer-macros [defcard]]or this (:require-macros [devcards.core :refer [defcard]]) section I get this error: Uncaught TypeError: Cannot read property 'render' of undefinedin my browser console. Any ideas what is going on here?

sveri15:02:32

I just checked the dependency tree and every react dependency is > 0.14.x

sveri15:02:54

@kurtlazarus: I see you had the same problem: http://clojurians-log.mantike.pro/devcards/2015-12-10.html did you solve this somehow?

kurtlazarus17:02:32

@sveri: yea, i solved it by downgrading reagent

kurtlazarus17:02:08

at the time, reagent and devcards were using two different versions of react

sveri17:02:03

Hm, my dependency tree looks like this:

sveri17:02:47

they almost refer to the same version

sveri17:02:02

although only devcards refers to plain react

sveri17:02:49

Got it working now using the versions from here: https://github.com/bhauman/devcards-template/blob/master/src/leiningen/new/devcards/project.clj I get a warning that React.render is deprecated, but I guess thats ok