devcards

Devcards aims to provide a visual REPL experience for ClojureScript https://github.com/bhauman/devcards
sveri 2016-02-23T14:46:03.000015Z

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?

sveri 2016-02-23T15:11:32.000016Z

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

sveri 2016-02-23T15:23:54.000017Z

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

2016-02-23T17:17:32.000019Z

@sveri: yea, i solved it by downgrading reagent

2016-02-23T17:18:08.000020Z

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

sveri 2016-02-23T17:26:03.000021Z

Hm, my dependency tree looks like this:

sveri 2016-02-23T17:26:47.000023Z

they almost refer to the same version

sveri 2016-02-23T17:27:02.000024Z

although only devcards refers to plain react

sveri 2016-02-23T17:39:49.000025Z

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