In an application build from the chestnut template I'm getting this error 
deploying to heroku:

remote:        WARNING: 
/tmp/build_cd01f924207bc6326f564b278526aad7/resources/public/highlightjs/highlight.js:1:
 WARNING - accessing name exports in externs has no effect. Perhaps you forgot 
to add a var keyword?

and lots and lots of javascript lines of code with warnings.

In the application, as  I use the highlighjs library, and I serve it from the 
resources directory I have listed it in the  externs definition (I include the 
full project.clj at the end of the post).

To access the library inside my code, I do:

(did-update [_ _ _]
      (let [code (-> js/document
                     (.getElementById "codeview"))]
        (when code
          (.highlightBlock js/hljs code))))

where hljs is the javascript object which encapsulates the library.

The application seems to work OK so I don't know if the warning is important or 
not.

Any help?

Thanks.

Juan Manuel

(defproject post-to-screen "0.4.0-SNAPSHOT"
  :description "Webapp to post code to show on the screen"
  :url "https://github.com/jmgimeno/post-to-screen";
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}

  :source-paths ["src/clj" "src/cljs"]

  :dependencies [[org.clojure/clojure "1.6.0"]
                 [org.clojure/clojurescript "0.0-2371" :scope "provided"]
                 [leiningen "2.5.0"]
                 [org.clojure/core.async "0.1.346.0-17112a-alpha"]
                 [com.taoensso/sente "1.2.0"]

                 ;; Server
                 [ring "1.3.1"]
                 [compojure "1.2.0"]
                 [hiccup "1.0.5"]
                 [http-kit "2.1.16"]
                 [environ "1.0.0"]

                 ;; Client
                 [om "0.8.0-beta3"]
                 [sablono "0.2.22"]

                 ;; Devel

                 [enlive "1.1.5"]
                 [figwheel "0.1.4-SNAPSHOT"]
                 [com.cemerick/piggieback "0.1.3"]
                 [weasel "0.4.0-SNAPSHOT"]]

  :plugins [[lein-cljsbuild "1.0.3"]
            [lein-environ "1.0.0"]]

  :min-lein-version "2.5.0"

  :uberjar-name "post-to-screen.jar"

  :cljsbuild {:builds {:app {:source-paths ["src/cljs"]
                             :compiler {:output-to     
"resources/public/js/app.js"
                                        :output-dir    "resources/public/js/out"
                                        :source-map    
"resources/public/js/out.js.map"
                                        :preamble      ["react/react.min.js"]
                                        :externs       ["react/externs/react.js"
                                                        
"resources/public/highlightjs/highlight.js"]
                                        :optimizations :none
                                        :pretty-print  true}}}}

  :profiles {:dev {:repl-options {:timeout 60000
                                  :init-ns post-to-screen.server
                                  :nrepl-middleware 
[cemerick.piggieback/wrap-cljs-repl]}

                   :plugins [[lein-figwheel "0.1.4-SNAPSHOT"]]

                   :figwheel {:http-server-root "public"
                              :port 3449
                              :css-dirs ["resources/public/css"]}

                   :env {:is-dev true}

                   :cljsbuild {:builds {:app {:source-paths ["env/dev/cljs"]}}}}

             :uberjar {:hooks [leiningen.cljsbuild]
                       :env {:production true}
                       :omit-source true
                       :aot :all
                       :cljsbuild {:builds {:app
                                            {:source-paths ["env/prod/cljs"]
                                             :compiler
                                             {:optimizations :advanced
                                              :pretty-print false}}}}}})

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