Skip to content

Instantly share code, notes, and snippets.

@jlongster
Created October 15, 2012 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlongster/3892983 to your computer and use it in GitHub Desktop.
Save jlongster/3892983 to your computer and use it in GitHub Desktop.
clojurescript node error
james:~/projects/clojurescript(master)% cat hello.cljs
(ns nodehello)
(defn -main [& args]
(println (apply str (map [\ "world" "hello"] [2 0 1]))))
(set! *main-cli-fn* -main)%
james:~/projects/clojurescript(master)% ./bin/cljsc hello.cljs '{:optimizations :advanced :target :nodejs}' > nodehello.js
Oct 15, 2012 11:07:21 AM com.google.javascript.jscomp.LoggerErrorManager println
SEVERE: cljs.nodejscli:3: ERROR - required "cljs.nodejs" namespace never provided
goog.require('cljs.nodejs');
^
Oct 15, 2012 11:07:21 AM com.google.javascript.jscomp.LoggerErrorManager printSummary
WARNING: 1 error(s), 0 warning(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment