@David Nolen I just ran into the same problem, and was lucky to find this info. Is it maybe better to change the Quick Start so, it is more allowing, in case someone makes an error earlier on?
I mean to suggest using cljs.core/require over require On Wednesday, December 14, 2016 at 2:40:01 PM UTC+1, David Nolen wrote: > > `require` only works if your namespace is in a file that respects Java > classpath conventions. You may have missed this detail in the way all the > Quick Start examples are structured. > > HTH, > David > > On Sat, Jan 30, 2016 at 12:17 PM, Gregg Reynolds <d...@mobileink.com > <javascript:>> 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 clo...@googlegroups.com >> <javascript:> >> 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 <javascript:> >> 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+u...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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.