This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-20
Channels
- # announcements (2)
- # architecture (5)
- # beginners (118)
- # cider (5)
- # clara (13)
- # cljdoc (8)
- # cljs-dev (49)
- # cljsjs (2)
- # clojure (107)
- # clojure-dev (9)
- # clojure-europe (3)
- # clojure-italy (58)
- # clojure-japan (2)
- # clojure-nl (6)
- # clojure-spec (89)
- # clojure-uk (27)
- # clojurescript (9)
- # core-async (33)
- # cursive (2)
- # datascript (2)
- # datomic (31)
- # duct (4)
- # emacs (1)
- # events (1)
- # figwheel-main (1)
- # fulcro (69)
- # hoplon (7)
- # hyperfiddle (16)
- # incanter (4)
- # instaparse (4)
- # kaocha (1)
- # mount (2)
- # nrepl (19)
- # off-topic (40)
- # onyx (6)
- # other-languages (3)
- # pedestal (2)
- # re-frame (48)
- # reagent (2)
- # reitit (10)
- # ring-swagger (9)
- # shadow-cljs (63)
- # spacemacs (13)
- # sql (8)
@grav If you are using :npm-deps
, you can place :npm-deps
in deps.cljs
to establish an upstream dependency. Example at https://gist.github.com/mfikes/0ba48578175d8aa0afd4834f33107bb8
Does anyone have an idea why the following code using r0man's cljs-http library works on Chrome and IE11 but fails on Edge?
(defn call-web-service
[url sec-token]
(go (let [response (<! (http/get url
{
:response-type :array-buffer
:with-credentials? false
:headers {"x-sectoken" sec-token}
}))]
(swap! app-state assoc :response response)
(println "Status is: " (:response @app-state)))))
Chrome says:
Status is: {:status 200, :success true, :body #object[ArrayBuffer [object ArrayBuffer]], :headers {content-type image/jpeg}, :trace-redirects [ ], :error-code :no-error, :error-text }
But Edge says:
Status is: {:status 0, :success false, :body nil, :headers {}, :trace-redirects [ ], :error-code :http-error, :error-text [0]}
Based on that status 0 seems like this is a possibility. https://stackoverflow.com/questions/35176082/why-are-cors-requests-failing-in-microsoft-edge-but-working-in-other-browsers
I think that very well could be the issue. I'm not getting a specific CORS error but the rest of the behavior is in line with the notes in the reference article. Thanks!
Moving from cljs 1.10.339
to 1.10.439
is giving me an NPE during compilation.
The thrown ExceptionInfo contains the source-file of the error and the NPE as the cause.
The file is pretty normal, and the stack trace contains only clojure.core
/`cljs.compiler` fns.
Is there something I could do to get more insight on what could be causing the NPE?
@aisamu if you are using Shadow-cljs makes sure you use 2.7.x
Thanks, but we're using cljsbuild!