On Tuesday, October 14, 2014 4:11:00 PM UTC+3, David Nolen wrote: > Getting the project.clj config just right for REPL driven development > > is not trivial. I recommend Chestnut > > (https://github.com/plexus/chestnut) as a starting point over trying > > to figure this out yourself if you don't have a lot of experience with > > ClojureScript. > > > > On Tue, Oct 14, 2014 at 9:04 AM, Dominykas Mostauskis > > <[email protected]> wrote: > > > 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)? > > > >
Yes it definitely is not trivial. I am finding it rather difficult really. Chestnut works out of the box, which was refreshing after trying to hack it together on my own. On the other hand, I am still trying to understand the stack and Chestnut, specifically: how isolated is Chestnut from the web-app that it would "host" - Actually, after spending a good half hour pondering that, I came to the conclusion that there's no reason Chestnut development routines might interfere with production logic. Though I have to confess there is a feeling of awkwardness because these development routines are quite complex. I will be thinking about how to achieve more separation between development and production routines. -- 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.
