Hello, the directory *hello_world/* . ├── cljs.jar ├── node.clj └── src └── hello_world └── core.cljs
in this directory (where the node.clj file is) just execute: java -cp "cljs.jar;src" clojure.main node.clj and then: node main.js That is. Saludos! El jueves, 15 de junio de 2017, 18:34:22 (UTC-5), Mike Frederick escribió: > > All, > > It seems like I have setup/built everything correctly, but I cannot get > the tutorial given at https://clojurescript.org/guides/quick-start to > work... > > here is the file *src\hello-world\core.cljs* > > (ns hello-world.core > (:require [cljs.nodejs :as nodejs])) > > (nodejs/enable-util-print!) > > (defn -main [& args] > (println "Hello world!")) > > (set! *main-cli-fn* -main) > > and here is the file *src\hello-world\node.clj* > > (require 'cljs.build.api) > (cljs.build.api/build "src" > {:main 'hello-world.core > :output-to "main.js" > :target :nodejs}) > >> >> > These look to be exactly as listed at the tutorial web site. Yes, I am > using a Windows system. I compile this with: > > C:\Users\Michael\Documents\src\hello-world>java -cp "cljs.jar;src" clojure > .main node.clj > > and get no messages. Then I type: > > C:\Users\Michael\Documents\src\hello-world>node main.js > goog.require could not find: hello_world.core > > C:\Users\Michael\Documents\src\hello-world\out\goog\base.js:681 > throw Error(errorMessage); > ^ > Error: goog.require could not find: hello_world.core > at Error (native) > at Object.goog.require (C:\Users\Michael\Documents\src\hello-world\out > \goog\base.js:681:11) > at Object.<anonymous> (C:\Users\Michael\Documents\src\hello-world\main > .js:22:6) > at Module._compile (module.js:570:32) > at Object.Module._extensions..js (module.js:579:10) > at Module.load (module.js:487:32) > at tryModuleLoad (module.js:446:12) > at Function.Module._load (module.js:438:3) > at Module.runMain (module.js:604:10) > at run (bootstrap_node.js:394:7) > > Can anyone help me get this running? TIA > -- 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 clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at https://groups.google.com/group/clojurescript.