nrepl / weasel

ClojureScript browser REPL using WebSockets
The Unlicense
324 stars 35 forks source link

Massive incomprehensible Goog spew #31

Closed kenrestivo closed 10 years ago

kenrestivo commented 10 years ago

I'm trying a very basic hello world using


  :dependencies [[org.clojure/clojure "1.6.0"]
                 [org.clojure/clojurescript "0.0-2371"]
                 [weasel "0.4.1"]
                 [com.cemerick/piggieback "0.1.3"]
                 ]
  :profiles {:dev {:plugins [[lein-cljsbuild "1.0.3"]]
                   :repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}}

And upon loading the :none optimized page, get the following spew in the js console:

Uncaught TypeError: Object #<Object> has no method 'define' functions.js:277
Uncaught TypeError: Object #<Object> has no method 'define' log.js:34
goog.require could not find: goog.debug.errorHandlerWeakDep base.js:349
Uncaught Error: goog.require could not find: goog.debug.errorHandlerWeakDep base.js:353
Uncaught TypeError: Object #<Object> has no method 'define' promise.js:169
Uncaught Error: Namespace "goog.dom.NodeType" already declared. base.js:114
goog.require could not find: goog.events.EventWrapper base.js:349
Uncaught Error: goog.require could not find: goog.events.EventWrapper base.js:353
Uncaught TypeError: Object #<Object> has no method 'define' bidi.js:37
Uncaught TypeError: Object #<Object> has no method 'getUniqueId' websocket.js:160
Uncaught Error: No *print-fn* fn set for evaluation environment core.cljs:26
Uncaught TypeError: Property 'getNextReconnect_' of object [object Object] is not a function websocket.js:95
kenrestivo commented 10 years ago

Works correctly confirmed with 2371 and 0.4.1. Sorry for the thrash.