I believe this error is because you're not including the google closure third party jar as a dependency.
David On Tue, Dec 4, 2012 at 2:07 AM, Brent Millare <brent.mill...@gmail.com>wrote: > https://github.com/downloads/bmillare/dj.web.browser/minimal.tar.gz > > @Mimmo, I don't use cljsbuild as thats mainly for automation that doesn't > fit my use cases. Instead I am using the github clojurescript docs for this > reference project. Normally, I use my own build tools. > > I created a minimal project, you can just run the steps.sh script (and > follow the comments) to reproduce the error. I assume you are running this > on linux. > > Also another thing I forgot to mention, after loading the url, the repl > spits out errors: > > ClojureScript:cljs.user> Dec 03, 2012 8:50:33 PM > com.google.javascript.jscomp.LoggerErrorManager println > SEVERE: > file:/home/bmillare/dj/usr/src/minimal/clojurescript/lib/goog.jar!/goog/net/xpc/crosspagechannel.js:26: > ERROR - required "goog.async.Deferred" namespace never provided > goog.require('goog.async.Deferred'); > ^ > > Dec 03, 2012 8:50:33 PM com.google.javascript.jscomp.LoggerErrorManager > println > SEVERE: > file:/home/bmillare/dj/usr/src/minimal/clojurescript/lib/goog.jar!/goog/net/xpc/nativemessagingtransport.js:26: > ERROR - required "goog.async.Deferred" namespace never provided > goog.require('goog.async.Deferred'); > ^ > > Dec 03, 2012 8:50:33 PM 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:/home/bmillare/dj/usr/src/minimal/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:/home/bmillare/dj/usr/src/minimal/clojurescript/lib/goog.jar!/goog/net/xpc/nativemessagingtransport.js > line 26 : 0 > > > On Monday, December 3, 2012 7:50:11 PM UTC-5, David Nolen wrote: > >> Please create a minimal project that demonstrates the issue for you, then >> we can try to run that. >> >> >> On Tue, Dec 4, 2012 at 12:02 AM, Brent Millare <brent....@gmail.com>wrote: >> >>> Still getting the same error regardless. >>> >>> 1. creating index.html (with compiled cljs code and call to connect) and >>> putting in clojurescript directory >>> 2. starting up clojurescript clojure repl with ./script/repl >>> 3. Running the clojurescript repl with: >>> (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 >>> 4. Point browser to "http://localhost:9000" >>> >>> I get the "clojure is not defined error", and clojurescript repl is >>> still unresponsive (since connection wasn't completed). The compiling step >>> is fine and the clojurescript code before the call to connect works. >>> >>> >>> >>> On Monday, December 3, 2012 6:22:24 PM UTC-5, David Nolen wrote: >>>> >>>> file:// urls don't work anymore due to changes in the Google Closure >>>> Library. You need to point your browser to http://localhost:9000/, by >>>> default it looks for index.html. >>>> >>>> David >>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Clojure" group. >>> To post to this group, send email to clo...@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+u...@**googlegroups.com >>> >>> For more options, visit this group at >>> http://groups.google.com/**group/clojure?hl=en<http://groups.google.com/group/clojure?hl=en> >>> >> >> -- > 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 > -- 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