I have the same problem, using an unmodified clojurescript checkout (08db38f) with nodejs 0.4.10 on MacOSX 10.6.8.
$ cat nodehello.cljs (ns nodehello) (defn -main [& args] (println (apply str (map [\ "world" "hello"] [2 0 1])))) (set! *main-cli-fn* -main) $ bin/cljsc nodehello.cljs '{:optimizations :advanced :target :nodejs}' > nodehello.js $ node nodehello.js node.js:134 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: Cannot read property 'prototype' of undefined at Object.<anonymous> (/Source/Git/clojurescript/nodehello.js: 14:382) at Module._compile (module.js:402:26) at Object..js (module.js:408:10) at Module.load (module.js:334:31) at Function._load (module.js:293:12) at Array.<anonymous> (module.js:421:10) at EventEmitter._tickCallback (node.js:126:26) On 24 Juli, 07:53, Benny Tsai <benny.t...@gmail.com> wrote: > I should add that I did have to make one change to closure.clj in order to > compile nodehello.cljs; I changed the following line in the ns->file-name > function: > > path (string/replace (munge ns) \. java.io.File/separatorChar)] > > To: > > path (string/replace (munge ns) \. \/)] -- 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