I found the answer in the clojurescript wiki under "The REPL and
Evaluation Environments".

https://github.com/clojure/clojurescript/wiki/The-REPL-and-Evaluation-Environments

(require x) is not supported but (ns ...) supports :require.

On Dec 18, 4:23 pm, Fiel Cabral
<e4696wyoa63emq6w3250kiw60i4...@gmail.com> wrote:
> I'm trying to learn ClojureScript and I get this error when calling
> require in the repljs REPL:
>
> (I ran these commands after cloning the git repo last night and
> running script/bootstrap)
>
> ./script/repljs
> "Type: " :cljs/quit " to quit"
> ClojureScript:cljs.user> (+ 1 1)
> 2
> ClojureScript:cljs.user> (zero? 0)
> true
> ClojureScript:cljs.user> (require '[goog.string :as gstring])
> "Error evaluating:" (require (quote [goog.string :as gstring])) :as
> "cljs.user.require.call(null,(new cljs.core.Vector(null,
> [\"?'goog.string\",\"?'as\",\"?'gstring\"])));\n"
> org.mozilla.javascript.EcmaError: TypeError: Cannot call method "call"
> of undefined (<cljs repl>#3)
>         at <cljs repl>:3 (anonymous)
>         at <cljs repl>:3
>
> nil
> ClojureScript:cljs.user>
>
> Thanks in advance.
> -Fiel

-- 
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