:target option needs to be in the :compiler map. On Sunday, January 4, 2015, Robin Ricard <[email protected]> wrote:
> Hi there ! > > I'm rather new with cljs and yesterday I tried to build my first cljs app > using core.async & some Node.js APIs. > > I stumbled upon two issues: > > - One known issue that keeps core.async code from compiling with :simple > optimization: > https://groups.google.com/forum/#!topic/clojurescript/5yrg7T2wSz8 > - One other issue I can't find any information on online ... > > I tried to build a node target with no optimizations. So I followed the > guide: > https://github.com/clojure/clojurescript/wiki/Quick-Start#notes-on-optimization-settings > But at this point I get this stacktrace from node: > > Error: Cannot find module './target/dev/goog/bootstrap/nodejs' > at Function.Module._resolveFilename (module.js:338:15) > at Function.Module._load (module.js:280:25) > at Module.require (module.js:364:17) > at require (module.js:380:17) > at Object.<anonymous> (/Users/rricard/src/ > github.com/rricard/ring-node-adapter/run-dev.js:1:63) > 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) > > Which obviously means that goog/bootstrap/nodejs.js is not there and > that's the case. Now I'm clueless because I don't see any reasons why it > doesn't work. I tried every possible option in cljsbuild but nope... > > Here are the possibly wrong files: > > run-dev.js > > require('./target/dev/goog/bootstrap/nodejs') > require('./target/dev.js') > require('./target/dev/example') > > part of project.clj > > :cljsbuild [ > :builds [{:id "dev" > :target :nodejs > :source-paths ["src" "example"] > :compiler { > :output-to "target/dev.js" > :output-dir "target/dev" > :optimizations :none > :cache-analysis true > :pretty-print true}} > > If it's indeed a real issue, I'll open one in the tracker ! > > Thanks for the help, I wouldn't ask if I wasn't completely clueless ! > > Robin Ricard > > -- > 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] <javascript:;>. > To post to this group, send email to [email protected] > <javascript:;>. > 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.
