Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by
edited by

clojurescript "1.10.742"

cljs.user=> (require '[goog.net.XhrIo :as xhrio])
nil
cljs.user=> xhrio/send
WARNING: Use of undeclared Var goog.net.XhrIo/send at line 1 <cljs repl>
#object[Function]

cljs.user=> (import '[goog.net XhrIo])
nil
cljs.user=> XhrIo/send
WARNING: Use of undeclared Var goog.net.XhrIo/send at line 1 <cljs repl>
#object[Function]

It's breaks figweel-main.

But Pomises works as expected

cljs.user=> (require '[goog.Promise :as p])
nil
cljs.user=> p/all
#object[Function]

cljs.user=> (import '[goog Promise])
nil
cljs.user=> p/all
#object[Function]

1 Answer

+1 vote
by

figwheel-main is not yet compatible with ClojureScript >=1.10.741, Bruce Hauman the maintainer is aware and will be working on getting things updated soon.

by
It's reproduced without figwheel:

$ clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.742"}}}' --main cljs.main --repl
ClojureScript 1.10.742
cljs.user=> (require '[goog.net.XhrIo :as x])
nil
cljs.user=> x/send
WARNING: Use of undeclared Var goog.net.XhrIo/send at line 1 <cljs repl>
#object[Function]
cljs.user=>
by
Indeed, it's not related to figwheel.
...