Trouble using the fetch Clojurescript library.

56 views
Skip to first unread message

James Sofra

unread,
Feb 22, 2012, 8:49:51 AM2/22/12
to clo...@googlegroups.com
hi,

I am putting together a small Clojurescript project and trying out Chris Granger's library, fetch.

I can call functions defined in the fetch.util namespace no problem but when ever I try and use things defined in the fetch.remotes namespace it fails.

The compilation is successful but the browser spits an error saying that the function in fetch.remotes is undefined.

Anyone got any ideas?

here is the namespace imports, second one work, first doesn't

  (:require [fetch.remotes :as fr])
  (:use [fetch.util :only [clj->js]])

Here is a sample of my project.clj file

(defproject my-proj "1.0.0-SNAPSHOT"
  :description "FIXME: write description"
  :dependencies [[org.clojure/clojure "1.3.0"]
                 [noir "1.3.0-alpha10"]
                 [seesaw "1.3.1-SNAPSHOT"]
                 [jayq "0.1.0-SNAPSHOT"]
                 [fetch "0.1.0-SNAPSHOT"]]
  :cljsbuild [{:source-path "src"
               :crossovers [proj.core]
               :compiler {:output-dir "resources/public/js"
 :output-to "resources/public/js/my_proj.js"
                          :externs ["resources/externs/highcharts.js"]
                          :optimizations :simple
                          :pretty-print false}}])

Cheers,
James

James Sofra

unread,
Feb 22, 2012, 9:52:18 AM2/22/12
to clo...@googlegroups.com
Sorry for the noise, this is working now. Really not sure what the problem was.
Either I am misunderstanding something or the compilation process is a bit flaky.

Cheers,
James 
Reply all
Reply to author
Forward
0 new messages