This thread may be some help
https://groups.google.com/forum/?fromgroups=#!searchin/clojure/brent/clojure/DmnPwrVvfW8/qgnp6MTVWusJ



On Sunday, December 9, 2012 11:53:16 AM UTC-5, Asim Jalis wrote:
>
> Hi,
>
> I am trying to follow the Quick Start steps to get a ClojureScript REPL in 
> a browser. Except when I try this I get errors in the REPL (see REPL 
> ERRORS). I am appending steps I am using (see QUICK START STEPS).
>
> Any ideas on what might be the problem and how to fix it?
>
> Thanks!
>
> Asim
>
>
> REPL ERRORS
>
> user=> (repl/repl env) ;; start the REPL
> "Type: " :cljs/quit " to quit"
> ClojureScript:cljs.user> Dec 9, 2012 8:36:53 AM 
> com.google.javascript.jscomp.LoggerErrorManager println
> SEVERE: 
> file:/Users/asimjalis/Proj/008-clojurescript/clojurescript/lib/goog.jar!/goog/net/xpc/crosspagechannel.js:26:
>  
> ERROR - required "goog.async.Deferred" namespace never provided
> goog.require('goog.async.Deferred');
> ^
>
> Dec 9, 2012 8:36:53 AM com.google.javascript.jscomp.LoggerErrorManager 
> println
> SEVERE: 
> file:/Users/asimjalis/Proj/008-clojurescript/clojurescript/lib/goog.jar!/goog/net/xpc/nativemessagingtransport.js:26:
>  
> ERROR - required "goog.async.Deferred" namespace never provided
> goog.require('goog.async.Deferred');
> ^
>
> Dec 9, 2012 8:36:53 AM com.google.javascript.jscomp.LoggerErrorManager 
> printSummary
> WARNING: 2 error(s), 0 warning(s)
> ERROR: JSC_MISSING_PROVIDE_ERROR. required "goog.async.Deferred" namespace 
> never provided at 
> file:/Users/asimjalis/Proj/008-clojurescript/clojurescript/lib/goog.jar!/goog/net/xpc/crosspagechannel.js
>  
> line 26 : 0
> ERROR: JSC_MISSING_PROVIDE_ERROR. required "goog.async.Deferred" namespace 
> never provided at 
> file:/Users/asimjalis/Proj/008-clojurescript/clojurescript/lib/goog.jar!/goog/net/xpc/nativemessagingtransport.js
>  
> line 26 : 0
>
> QUICK START STEPS 
>
> git clone git://github.com/clojure/clojurescript.git
> cd clojurescript
> ./script/bootstrap
> export CLOJURESCRIPT_HOME=$PWD
>
> cat << CLJS_END > foo.cljs
> (ns foo
>   (:require [clojure.browser.repl :as repl]))
> (repl/connect "http://localhost:9000/repl";)
> CLJS_END
>
> ./bin/cljsc foo.cljs > foo.js
>
> cat << HTML_END > index.html
> <html>
>   <head>
>     <meta charset="UTF-8">
>     <title>Browser-connected REPL</title>
>   </head>
>   <body>
>     <div id="content">
>       <script type="text/javascript" src="out/goog/base.js"></script>
>       <script type="text/javascript" src="foo.js"></script>
>       <script type="text/javascript">
>         goog.require('foo');
>       </script>
>     </div>
>   </body>
> </html>
> HTML_END
>
> cat << REPL_PASTE_END;
> ;; Start REPL below and paste this into it
> (require '[cljs.repl :as repl])
> (require '[cljs.repl.browser :as browser])  ;; require the browser 
> implementation of IJavaScriptEnv
> (def env (browser/repl-env)) ;; create a new environment
> (repl/repl env) ;; start the REPL
> REPL_PASTE_END
>
> ./script/repl
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to