madvas / cljs-react-material-ui

Clojurescript library for using material-ui.com
Eclipse Public License 1.0
205 stars 32 forks source link

Can't run with reagent #15

Closed habamax closed 8 years ago

habamax commented 8 years ago

Plain reagent works with the following dependencies:

(set-env!
 :source-paths #{"src/cljs"}
 :resource-paths #{"html"}

 :dependencies '[[org.clojure/clojure "1.8.0"]
                 [org.clojure/clojurescript "1.9.76"]
                 [reagent "0.6.0-rc"]])

And if I add cljs-react-material-ui:

(set-env!
 :source-paths #{"src/cljs"}
 :resource-paths #{"html"}

 :dependencies '[[org.clojure/clojure "1.8.0"]
                 [org.clojure/clojurescript "1.9.76"]
                 ;; [reagent "0.6.0-rc"]])
                 [reagent "0.6.0-rc" :exclusions [org.clojure/tools.reader cljsjs/react]]
                 [cljs-react-material-ui "0.2.19"]])

Then when I try to render a simple (defn my-app [] [:h1 "hello"]) I get

Uncaught TypeError: React.render is not a function

In the browser.

What am I missing?

habamax commented 8 years ago

Well, after I updated reagent to 0.6.0-SNAPSHOT everything works.

Although documentation states that cljs-react-material-ui works for 0.6.0-alpha and up.

madvas commented 8 years ago

Well I never tried with reagent "0.6.0-rc", I tried 0.6.0-alpha and it worked. Good it works with snapshot, I'll make sure it works with 0.6.0 stable, once it's out.