This is finally fixed in master and will be available in the next ClojureScript release. Until then you must use :simple or :advanced with Node.js.
David On Thu, Mar 6, 2014 at 2:52 PM, Mark Fisher <[email protected]> wrote: > I'm having issues with a node.js clojurescript project using whitespace > optimization. > > Is my understanding of the recent push to git (0c7b31a 2014-02-24 | > CLJS-772: Support :none & :whitespace optimizations under Node.js) correct > in that whitespace should work now? > > It works fine under :simple optimization. > > The errors I'm getting are the same as on > http://dev.clojure.org/jira/browse/CLJS-101, ie. > > $ lein run > npm WARN package.json [email protected] No repository field. > > /path/to/clojurescript/cljs-test/resources/public/js/main.js:505 > goog.string.Unicode = {NBSP:"\u00a0"}; > ^ > TypeError: Cannot set property 'Unicode' of undefined > > I'm using v 0.0-2173, my project is > - - - 8< - - - > (defproject cljs-test "0.1.0-SNAPSHOT" > :description "A cljs node example project" > :source-paths ["src-clj"] > > :url "http://example.com/FIXME" > :license {:name "Eclipse Public License" > :url "http://www.eclipse.org/legal/epl-v10.html"} > :dependencies [[org.clojure/clojure "1.5.1"] > [org.clojure/clojurescript "0.0-2173" :exclusions > [org.apache.ant/ant]]] > :plugins [[lein-cljsbuild "1.0.2"] > [lein-npm "0.3.0"]] > :node-dependencies [[underscore "1.6.0"]] > :cljsbuild { > :builds [{:source-paths ["src-cljs"] > :compiler {:output-to "resources/public/js/main.js" > :optimizations :whitespace > :pretty-print true > :target :nodejs}}]} > :main "resources/public/js/main.js") > - - - - - - > > my app is simply: > > - - - 8< - - - > (ns cljs-test.hello) > (enable-console-print!) > > (defn start [& _] > (println "Hello World!")) > > (set! *main-cli-fn* start) > - - - - - - > > Cheers, > Mark > > -- > 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.
