Try running this instead: (cljs.core/require '[test.my-greeting :as t])
On Saturday, January 30, 2016 at 7:17:49 PM UTC+2, Gregg Reynolds wrote: > > I'm following the "browser REPL" section in the Clojurescript Quickstart > <https://github.com/clojure/clojurescript/wiki/Quick-Start>. Everything > seems hunky-dory; I can connect from the browser and eval code at the > repl. But when I change my source and try to require my namespace, I get: > > cljs.user=> (require '[test.my-greeting :as t]) > Reading analysis cache for tmp/test/my_greeting.cljs > java.lang.IllegalArgumentException: Namespace test.my-greeting does not > exist > > Here's the code: > > In <projroot>/browser_repl.cljs: > > (require 'cljs.repl) > (require 'cljs.build.api) > (require 'cljs.repl.browser) > > (cljs.build.api/build "tmp" > {:main 'test.my-greeting > :output-to "dev-resources/public/scripts/main.js" > :output-dir "dev-resources/public/scripts/cljs" > :verbose true}) > > (cljs.repl/repl (cljs.repl.browser/repl-env) > :watch "tmp" > :output-to "dev-resources/public/scripts/main.js" > :output-dir "dev-resources/public/scripts/cljs" > :verbose true) > > > In <projroot>/tmp/test/my_greeting.cljs: > > (ns test.my-greeting > (:require [clojure.browser.repl :as repl])) > (defonce conn > (repl/connect "http://localhost:9000/repl")) > (enable-console-print!) > (println "HELLO") > > I'm stumped. Help! > > Gregg > > -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.