Hi
I'm compiling cljs from cljs using cljs.js namespace. I followed
instructions from quick start:
https://github.com/clojure/clojurescript/wiki/Quick-Start#running-clojurescript-on-nodejs
and
got simple "Hello,world" script working on node. Now I added cljs.js to
:require list and it looks bad.
core.cljs:
(ns my.core
(:require [cljs.nodejs :as nodejs]
cljs.js))
(nodejs/enable-util-print!)
(defn -main [& args]
(println "Hello world!") )
(set! *main-cli-fn* -main)
Errors while compiling it (first 5):
~/repos/cljstest $ java -cp cljs.jar:src clojure.main node.clj && node
main.js
WARNING: Use of undeclared Var cljs.core/defmacro at line 99
out/cljs/core.cljc
WARNING: Use of undeclared Var cljs.core$macros/-> at line 99
out/cljs/core.cljc
WARNING: Use of undeclared Var cljs.core$macros/x at line 104
out/cljs/core.cljc
WARNING: Use of undeclared Var cljs.core$macros/& at line 104
out/cljs/core.cljc
WARNING: Use of undeclared Var cljs.core$macros/forms at line 104
out/cljs/core.cljc
Error when running main.js:
~/repos/cljstest $ node main.js
/home/nbeloglazov/repos/cljstest/out/cljs/core$macros.js:11
cljs.core.defmacro.call(null,cljs.core$macros.__GT_,"Threads the expr
through the forms. Inserts x as the\n second item in the first form,
making a list of it if it is not a\n list already. If there are more
forms, inserts the first form as the\n second item in second form,
etc.",new cljs.core.PersistentVector(null, 3, 5,
cljs.core.PersistentVector.EMPTY_NODE,
[cljs.core$macros.x,cljs.core$macros._AMPERSAND_,cljs.core$macros.forms],
null),(function (){var x = cljs.core$macros.x;
^
TypeError: Cannot read property 'call' of undefined
at Object.<anonymous>
(/home/nbeloglazov/repos/cljstest/out/cljs/core$macros.js:11:19)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at global.CLOSURE_IMPORT_SCRIPT
(/home/nbeloglazov/repos/cljstest/out/goog/bootstrap/nodejs.js:75:3)
at Object.goog.importScript_
(/home/nbeloglazov/repos/cljstest/out/goog/base.js:879:9)
at Object.goog.writeScripts_
(/home/nbeloglazov/repos/cljstest/out/goog/base.js:1321:16)
ClojureScript version: 1.7.228 (I believe).
Any ideas?
Thanks,
Nikita
--
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 https://groups.google.com/group/clojurescript.