Do you have a script tag sourcing out/goog/base.js in your index file prior to the script tag loading googbug.js? That is necessary when :optimizations is set to :none.
Jason On Tuesday, July 15, 2014 1:31:45 PM UTC-5, Ivan L wrote: > Hey all, > > I create project from the latest mies template. Launch a cljsbuild rhino > repl and it fails with goog undefined. > > Changes between 2173 (last working version) and 2197: > https://github.com/clojure/clojurescript/compare/r2173...r2197 > > Any thoughts? Is there a place to report this stuff too? I didn't see an > issues link on clojurescript github. > > ---- > > project.clj: > > (defproject googbug "0.1.0-SNAPSHOT" > :description "FIXME: write this!" > :url "http://example.com/FIXME" > > ; launch repl: lein trampoline cljsbuild repl-rhino > ; originally 0.0-2268, fails > ; error introduced in 0.0.2197, 2173 last version that worked. > ; org.mozilla.javascript.EcmaError: ReferenceError: "goog" is not defined. > (bootjs#1) > :dependencies [[org.clojure/clojure "1.6.0"] > [org.clojure/clojurescript "0.0-2197"]] > > :plugins [[lein-cljsbuild "1.0.4-SNAPSHOT"]] > > :source-paths ["src"] > > :cljsbuild { > :builds [{:id "googbug" > :source-paths ["src"] > :compiler { > :output-to "googbug.js" > :output-dir "out" > :optimizations :none > :source-map true}}]}) > > > exception: > Running Rhino-based ClojureScript REPL. > org.mozilla.javascript.EcmaError: ReferenceError: "goog" is not defined. > (bootjs#1) > at > org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687) > at > org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665) > at > org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3750) > at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1728) > at org.mozilla.javascript.gen.bootjs_2._c_script_0(bootjs:1) > at org.mozilla.javascript.gen.bootjs_2.call(bootjs) > at > org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) > at > org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) > at org.mozilla.javascript.gen.bootjs_2.call(bootjs) > at org.mozilla.javascript.gen.bootjs_2.exec(bootjs) > at org.mozilla.javascript.Context.evaluateString(Context.java:1079) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93) > at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28) > at cljs.repl.rhino$eval3216$fn__3218.invoke(rhino.clj:32) > at > cljs.repl.rhino$eval3187$fn__3188$G__3178__3199.invoke(rhino.clj:25) > at cljs.repl.rhino$repl_env.invoke(rhino.clj:140) > at cljsbuild.repl.rhino$run_repl_rhino.invoke(rhino.clj:7) > at user$eval3305.invoke(form-init2322346721970587161.clj:1) > at clojure.lang.Compiler.eval(Compiler.java:6703) > at clojure.lang.Compiler.eval(Compiler.java:6693) > at clojure.lang.Compiler.load(Compiler.java:7130) > at clojure.lang.Compiler.loadFile(Compiler.java:7086) > at clojure.main$load_script.invoke(main.clj:274) > at clojure.main$init_opt.invoke(main.clj:279) > at clojure.main$initialize.invoke(main.clj:307) > at clojure.main$null_opt.invoke(main.clj:342) > at clojure.main$main.doInvoke(main.clj:420) > at clojure.lang.RestFn.invoke(RestFn.java:421) > at clojure.lang.Var.invoke(Var.java:383) > at clojure.lang.AFn.applyToHelper(AFn.java:156) > at clojure.lang.Var.applyTo(Var.java:700) > at clojure.main.main(main.java:37) -- 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.
