You have not set *main-cli-fn*. This is covered here: https://github.com/clojure/clojurescript/wiki/Quick-Start#running-clojurescript-on-nodejs
On Tue, Apr 15, 2014 at 6:28 AM, Dario Bertini <[email protected]> wrote: > Hi, I'm trying out clojurescript once again, this time with nodejs as a > target. > > I tried to rewrite a small node.js snippet that uses an external library > (levelup) and to manage its dependencies with lein-npm. > > Unfortunately I get the error shown in the subject, it seems that a > similar bug has been fixed a year and a half ago (CLJS-355), and other > people already stumbled upon this: > https://groups.google.com/d/topic/clojure/utCAd9OtIb8/discussion > > this is the code: > > https://github.com/berdario/levelWHEN > > this is the generated js: > http://paste.ubuntu.com/7254474/ > > (sorry for using this site, but it was the only one that pastebinit could > use) > > and this is the full error: > > /home/dario/Projects/levelwhen/server.js:6407 > var c = a.cljs$lang$maxFixedArity; > ^ > TypeError: Cannot read property 'cljs$lang$maxFixedArity' of null > at cljs.core.apply.b (/home/dario/Projects/levelwhen/server.js:6407:14) > at cljs.core.apply.a (/home/dario/Projects/levelwhen/server.js:6458:18) > at Object.<anonymous> > (/home/dario/Projects/levelwhen/server.js:17803:17) > at Module._compile (module.js:456:26) > at Object.Module._extensions..js (module.js:474:10) > at Module.load (module.js:356:32) > at Function.Module._load (module.js:312:12) > at Function.Module.runMain (module.js:497:10) > at startup (node.js:119:16) > at node.js:901:3 > > > Thanks > > -- > 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. > -- 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.
