Fork me on GitHub
#shadow-cljs
<
2022-03-13
>
thheller05:03:23

in what context do you get that? never seen that before

ribelo13:03:18

(defn Fail
     [msg data]
     (this-as this
       (set! (.-message ^js this) msg)
       this))

thheller16:03:05

then you likely just miss the ^{:jsdoc ["@constructor"]}. thats actually important

👍 1
Quentin Le Guennec14:03:17

Out of curiosity, is there a way with cider+shadow-cljs to live debug a library defined in deps.edn ?

agold17:03:12

Any idea what could be causing this?

shadow-cljs - remote-error Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 2, …}
eval @ shared.cljs:305
shadow$cljs$devtools$client$shared$remote_error @ shared.cljs:18
eval @ websocket.cljs:29
error (async)
shadow$cljs$devtools$client$websocket$start @ websocket.cljs:26
eval @ shared.cljs:324
shadow$cljs$devtools$client$shared$init_runtime_BANG_ @ shared.cljs:509
eval @ browser.cljs:337
goog.globalEval @ app.js:488
env.evalLoad @ app.js:1563
(anonymous) @ app.js:2245

thheller18:03:20

look in the devtools network tab. that usually tells you whats up.

agold18:03:31

Another question: I'm getting this in the output from npx shadow-cljs -d cider/cider-nrepl:0.27.4 watch :app:

Mar 13, 2022 2:23:42 PM io.undertow.server.handlers.proxy.ProxyHandler$ProxyClientHandler cancel
ERROR: UT005027: Timing out request to /vis-network.min.js.map
What is the undertow server for? How can I stop this error?

thheller18:03:19

undertow is the http server

thheller18:03:34

looks like you are using a proxy that doesn't reply in time?

👍 1