I just upgraded from 0.0-2665 to 0.0-2740. Now I see this when I run the code:
TypeError: 'undefined' is not a function (evaluating 'goog.nodeGlobalRequire')
at /Users/.../target/out/cljs/core.js:183
I tried to go back release by release to find the first occurrence, it was at
0.0-2723.
It seems that it wants to use a Node.js function to load a module? The code is
cljs.core.load_file = (function load_file(file){
if(cljs.core.truth_(COMPILED)){
return null;
} else {
return
goog.nodeGlobalRequire([cljs.core.str("/Users/stephan/.boot/tmp/.../qu0/-7q8ihd/out"),cljs.core.str("/"),cljs.core.str(file)].join(''));
}
});
I'm quite sure I did not specify node as the target for this output. Is there
any way to check if CLJS thinks I'm targeting node (for optimization :none)?
PS: Interestingly, between from 0.0-2657 to 0.0-2719 I see this exception
java.lang.ClassCastException: java.lang.String cannot be cast to
clojure.lang.IPersistentCollection
clojure.core/conj core.clj: 83
clojure.core/merge/fn core.clj: 2759
clojure.core/reduce1 core.clj: 903
clojure.core/reduce1 core.clj: 894
clojure.core/merge core.clj: 2759
...
cljs.closure/write-javascript closure.clj: 812
cljs.closure/source-on-disk closure.clj: 828
cljs.closure/output-unoptimized/fn closure.clj: 861
clojure.core/map/fn core.clj: 2559
Stephan
--
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.