bhauman / figwheel-repl

Figwheel REPL provides a stable multiplexing REPL for ClojureScript
45 stars 11 forks source link

Use of undeclared Var goog.net.XhrIo/send #14

Open aarkerio opened 4 years ago

aarkerio commented 4 years ago

Using the last ClojureScript "1.10.741" this happens:

$ clojure -Sdeps '{:source-paths ["src/cljs" "env/dev/cljs"] :paths ["env/dev/cljs" "env/dev/resources" "src/cljs" "resources" "test/cljs"] :deps {org.clojure/clojurescript {:mvn/version "1.10.741"} com.bhauman/figwheel-main {:mvn/version "0.2.4"} re-graph {:mvn/version "0.1.11"} reagent {:mvn/version "0.10.0"} re-frame {:mvn/version "0.12.0"} cljs-ajax {:mvn/version "0.8.0"} com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}}}' -m  figwheel.main --build dev --repl
2020-04-25 16:32:01.447:INFO::main: Logging initialized @15376ms to org.eclipse.jetty.util.log.StdErrLog
[Figwheel] Validating figwheel-main.edn
[Figwheel] figwheel-main.edn is valid \(ツ)/
[Figwheel] Compiling build dev to "resources/public/js/dev.js"
[Figwheel:WARNING] Compile Warning   resources/public/js/dev/figwheel/repl.cljc   line:313  column:8

  Use of undeclared Var goog.net.XhrIo/send

  308                (.on "error" #(js/console.error %))
  309                (doto
  310                    (.write post-data)
  311                    (.end))))))
  312      (fn [url response]
  313        (xhrio/send url
              ^---
  314                    (fn [e] (debug "Response Posted"))
  315                    "POST"
  316                    response))))
  317  
  318  (defn respond-to [{:keys [websocket http-url] :as old-msg} response-body]

[Figwheel:WARNING] Compile Warning   resources/public/js/dev/figwheel/repl.cljc   line:516  column:11

  Use of undeclared Var goog.net.XhrIo/send

  511                                                        (err e)))))))
  512                   (.on "error" err)))))))
  513      (fn [url]
  514        (Promise.
  515         (fn [succ err]
  516           (xhrio/send
                 ^---
  517            url
  518            (fn [e]
  519              (let [xhr (gobj/get e "target")]
  520                (if (.isSuccess xhr)
  521                  (succ (.getResponseJson xhr))

The dev.cljs.end file:

^{:watch-dirs ["env/dev/cljs" "src/cljs" "test/cljs"] }}
{
 :source-paths ["src/cljs" "env/dev/cljs" "test/cljs"]
 :main zentaur.app
 :optimizations :none
 :source-map true
 :asset-path "/js/dev"
 :output-to "resources/public/js/dev.js"
 :output-dir "resources/public/js/dev"
}
bhauman commented 4 years ago

1.10.741 contains several breaking changes an isn’t supported yet.

It will be a couple weeks.

Sent from ProtonMail Mobile

On Sat, Apr 25, 2020 at 3:41 PM, Manuel Montoya notifications@github.com wrote:

Using the last ClojureScript "1.10.741" this happens:

$ clojure -Sdeps '{:source-paths ["src/cljs" "env/dev/cljs"] :paths ["env/dev/cljs" "env/dev/resources" "src/cljs" "resources" "test/cljs"] :deps {org.clojure/clojurescript {:mvn/version "1.10.741"} com.bhauman/figwheel-main {:mvn/version "0.2.4"} re-graph {:mvn/version "0.1.11"} reagent {:mvn/version "0.10.0"} re-frame {:mvn/version "0.12.0"} cljs-ajax {:mvn/version "0.8.0"} com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}}}' -m figwheel.main --build dev --repl 2020-04-25 16:32:01.447:INFO::main: Logging initialized @15376ms to org.eclipse.jetty.util.log.StdErrLog [Figwheel] Validating figwheel-main.edn [Figwheel] figwheel-main.edn is valid (ツ)/ [Figwheel] Compiling build dev to "resources/public/js/dev.js" [Figwheel:WARNING] Compile Warning resources/public/js/dev/figwheel/repl.cljc line:313 column:8

Use of undeclared Var goog.net.XhrIo/send

308 (.on "error" #(js/console.error %)) 309 (doto 310 (.write post-data) 311 (.end)))))) 312 (fn [url response] 313 (xhrio/send url ^--- 314 (fn [e] (debug "Response Posted")) 315 "POST" 316 response)))) 317 318 (defn respond-to [{:keys [websocket http-url] :as old-msg} response-body]

[Figwheel:WARNING] Compile Warning resources/public/js/dev/figwheel/repl.cljc line:516 column:11

Use of undeclared Var goog.net.XhrIo/send

511 (err e))))))) 512 (.on "error" err))))))) 513 (fn [url] 514 (Promise. 515 (fn [succ err] 516 (xhrio/send ^--- 517 url 518 (fn [e] 519 (let [xhr (gobj/get e "target")] 520 (if (.isSuccess xhr) 521 (succ (.getResponseJson xhr))

The dev.cljs.end file:

^{:watch-dirs ["env/dev/cljs" "src/cljs" "test/cljs"] }} { :source-paths ["src/cljs" "env/dev/cljs" "test/cljs"] :main zentaur.app :optimizations :none :source-map true :asset-path "/js/dev" :output-to "resources/public/js/dev.js" :output-dir "resources/public/js/dev" }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.