Hi all,
I am trying to run the new REPL as described by David in 
http://swannodette.github.io/2015/01/02/the-essence-of-clojurescript-redux/
and am following the steps as described starting with `lein new mies 
hello-world`.

When I launch the REPL (using ./scripts/repl), I get the error message in [1]. 
When I try to evaluate something as simple as the number 1, I get an error 
message `ReferenceError: cljs is not defined` [2]. Interestingly, (require) 
statements go through fine, but I again run into undefined cljs when actually 
evaluating anything [3].

Any help would be appreciated.


[1]

To quit, type: :cljs/quit
ClojureScript Node.js REPL server listening on 50493
"Error evaluating:" (set! (.-require js/goog) (fn [name] 
(js/CLOSURE_IMPORT_SCRIPT (aget (.. js/goog -dependencies_ -nameToPath) 
name)))) :as "goog.require = (function (name){\nreturn 
CLOSURE_IMPORT_SCRIPT((goog.dependencies_.nameToPath[name]));\n});\n"
ReferenceError: goog is not defined
    at repl:1:1
    at Socket.eval (eval at <anonymous> ([stdin]:1:82))
    at Socket.EventEmitter.emit (events.js:88:17)
    at TCP.onread (net.js:392:31)
"Error evaluating:" (do (.require js/goog "cljs.core") (set! *print-fn* 
(.-print (js/require "util")))) :as 
"goog.require(\"cljs.core\");\n\ncljs.core._STAR_print_fn_STAR_ = 
require(\"util\").print;\n"
ReferenceError: goog is not defined
    at repl:1:1
    at Socket.eval (eval at <anonymous> ([stdin]:1:82))
    at Socket.EventEmitter.emit (events.js:88:17)
    at TCP.onread (net.js:392:31)
"Error evaluating:" (set! (.-require js/goog) (fn [name reload] (when (or (not 
(contains? *loaded-libs* name)) reload) (set! *loaded-libs* (conj (or 
*loaded-libs* #{}) name)) (js/CLOSURE_IMPORT_SCRIPT (aget (.. js/goog 
-dependencies_ -nameToPath) name))))) :as "goog.require = (function 
(name,reload){\nif(cljs.core.truth_((function (){var or__3227__auto__ = 
!(cljs.core.contains_QMARK_.call(null,cljs.core._STAR_loaded_libs_STAR_,name));\nif(or__3227__auto__){\nreturn
 or__3227__auto__;\n} else {\nreturn 
reload;\n}\n})())){\ncljs.core._STAR_loaded_libs_STAR_ = 
cljs.core.conj.call(null,(function (){var or__3227__auto__ = 
cljs.core._STAR_loaded_libs_STAR_;\nif(cljs.core.truth_(or__3227__auto__)){\nreturn
 or__3227__auto__;\n} else {\nreturn 
cljs.core.PersistentHashSet.EMPTY;\n}\n})(),name);\n\nreturn 
CLOSURE_IMPORT_SCRIPT((goog.dependencies_.nameToPath[name]));\n} else {\nreturn 
null;\n}\n});\n"
ReferenceError: goog is not defined
    at repl:1:1
    at Socket.eval (eval at <anonymous> ([stdin]:1:82))
    at Socket.EventEmitter.emit (events.js:88:17)
    at TCP.onread (net.js:392:31)


[2]:

ClojureScript:cljs.user> 1
"Error evaluating:" 1 :as "(1)"
ReferenceError: cljs is not defined
    at repl:1:1
    at Socket.eval (eval at <anonymous> ([stdin]:1:82))
    at Socket.EventEmitter.emit (events.js:88:17)
    at TCP.onread (net.js:392:31)
nil

[3]:
ClojureScript:cljs.user> (require '[hello-world.core :refer [foo]])

ClojureScript:cljs.user> (foo 1 2)
"Error evaluating:" (foo 1 2) :as "hello_world.core.foo.call(null,(1),(2))"
ReferenceError: cljs is not defined
    at repl:1:1
    at Socket.eval (eval at <anonymous> ([stdin]:1:82))
    at Socket.EventEmitter.emit (events.js:88:17)
    at TCP.onread (net.js:392:31)
nil

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

Reply via email to