This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-30
Channels
- # admin-announcements (13)
- # announcements (2)
- # avi (1)
- # aws (10)
- # beginners (427)
- # boot (3)
- # cider (4)
- # clara (26)
- # cljs-dev (21)
- # cljsrn (24)
- # clojure (205)
- # clojure-dev (32)
- # clojure-india (26)
- # clojure-japan (1)
- # clojure-russia (256)
- # clojurescript (41)
- # clojurex (1)
- # cursive (38)
- # datavis (99)
- # datomic (15)
- # emacs (19)
- # events (2)
- # funcool (5)
- # immutant (45)
- # ldnclj (3)
- # om (60)
- # omnext (4)
- # onyx (383)
- # overtone (7)
- # parinfer (1)
- # re-frame (3)
- # reagent (7)
- # ring (1)
- # testing (5)
I'm using nodejs REPL, and I get an exception on a test. How do I get the stack trace?
@jstew: http://stackoverflow.com/questions/25324082/index-of-vector-in-clojurescript
@mikethompson: are you asking a question?
Answering one, hopefully
does anyone have an idea why i get this in my browser script console? nodejs.cljs?rel=1448650510006:15Uncaught ReferenceError: require is not defined
@clojuregeek: it seems something is pulling in the Node.js helper namespaces which won’t work in a browser setting
@dnolen: thanks .. yeah that was it
I wrote up a quick blog on Foam, the server-side Om rendering library I talked about at the conj: https://rasterize.io/blog/server-side-foam-rendering.html
@arohner: cool, looking forward to pursuing deeper support for your ideas in Om Next, and I welcome help / collaboration. There were various other reasons I was already interested in defui
working on either the client or server. So this seems like another logical step to me.
also not against seeing this stuff get rolled into Om Now for people with large existing codebases that could benefit.
@arohner: I would just write a up a design page on the Om Wiki of how it currently works
Working through this https://github.com/omcljs/om/wiki/Intermediate-Tutorial .. can't get past the CORS warning.. i added header manually in my api server and also used wrap-cors .... am i missing something?
I see it says We rely on Google Closure to deal with cross browser issues:
but I can't see where it is..
@clojuregeek: CORs warning resulting from what?
@clojuregeek: but what is triggering that first request?
(defn app-container [cursor component]
(reify
om/IInitState
(init-state [_])
om/IWillMount
(will-mount [_]
(edn-xhr {:method :get
:url ""
:on-complete #(om/transact! cursor :eventTypes (fn [_] %))}))
will-mount ... want to load the data from my api
@clojuregeek: what url are you using to load your page?
?
api is at 3000
before using the edn-xhr I was using clj-http and passing the cors header in the response ... but since using the edn-xhr it doesn't seem to read in the headers..
@clojuregeek: yeah so edn-xhr
is probably broken now that is a standard browser thing
ok well when I figure it out, I'll see about that
@clojuregeek: http://google.github.io/closure-library/api/class_goog_net_CorsXmlHttpFactory.html ?
thanks