I'm running Om on node.js, and I've run into a small but very odd problem. I 
want to include the line "var React = require("react");" at the top of the JS 
output, but when I save that line into a file and add it as a preamble, it 
gives:

java.lang.IllegalArgumentException: No implementation of method: :make-reader 
of protocol: #'clojure.java.io/IOFactory found for class: nil

A bit of Googling suggests that this just means the path is wrong, yet adding 
"react.min.js" itself to the preamble, rather than my include file, compiles 
perfectly well. I've tried renaming the file, moving it to the root of the 
project and changing its content, all with no luck - it's driving me a little 
crazy at this point!

Relevant part of project.clj is below:

{:source-paths ["src" "src-server"]
     :compiler
             {:target :nodejs
              :output-to "deploy/index.js"
              :output-dir "out-server"
              ;:preamble ["react/include.js"] ;This fails, yet replacing it 
with "react/react.min.js" is fine
              :optimizations :simple}

-- 
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.

Reply via email to