Details
-
Type:
Defect
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:OS X
Description
If you target nodejs by adding {:target :nodejs} to the options (and set main-cli-fn) , you get this error:
https://gist.github.com/3892983
This appears to have been introduced with this commit: https://github.com/clojure/clojurescript/commit/d6f7d0b193de22378e06298fa543ca57d570c001
It spits out that error and nothing else. Any versions before that works fine.
Related: CLJS-355
A workaround that doesn't need a patch is to just require cljs.nodejs somewhere in your project.
Here is a workaround patch :/ (work-around-cljs-395.patch, 16 Oct 2012). The patch just removes the dependency on cljs.nodejs from cljs.nodejscli. Since all it uses is (js* "process"), it didn't seem worth the work to figure out how to do the dependency resolution while ensuring nodejscli ends up at the bottom.