When calling Om from REPL (Austin) complains with "ReferenceError: Can't find
variable: React":
user=> (cemerick.austin.repls/exec)
Browser-REPL ready @ http://localhost:32241/3937/repl/start
Type `:cljs/quit` to stop the ClojureScript REPL
nil
cljs.user=> (ns my.core (:require [om.dom :as dom]))
nil
my.core=> (dom/div nil "Hello!")
"Error evaluating:" (dom/div nil "Hello!") :as
"om.dom.div.call(null,null,\"Hello!\");\r\n"
#<ReferenceError: Can't find variable: React>
ReferenceError: Can't find variable: React
at :548
at :553
at :1
at :5
nil
project.clj:
:cljsbuild {
:builds [{
:id "main"
:source-paths ["src/cljs"]
:compiler {
:optimizations :whitespace
:output-dir "resources/public/js/out"
:output-to "resources/public/js/main.js"
:source-map "resources/public/js/main.js.map"
:preamble ["react/react.min.js"]
:externs ["react/externs/react.js"]
}}]}
How do I use Om in a ClojureScript REPL (interactively)?
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.