This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-04
Channels
- # announcements (7)
- # babashka (26)
- # babashka-sci-dev (19)
- # beginners (66)
- # calva (4)
- # clj-kondo (55)
- # cljs-dev (173)
- # cljsrn (17)
- # clojure (86)
- # clojure-art (3)
- # clojure-australia (1)
- # clojure-europe (24)
- # clojure-india (1)
- # clojure-nl (3)
- # clojure-uk (6)
- # clojured (5)
- # clojurescript (39)
- # cursive (8)
- # data-oriented-programming (20)
- # datomic (9)
- # emacs (10)
- # events (1)
- # figwheel-main (16)
- # fulcro (33)
- # gratitude (1)
- # helix (2)
- # hugsql (2)
- # jobs (2)
- # kaocha (4)
- # leiningen (5)
- # lsp (110)
- # malli (1)
- # missionary (17)
- # observability (3)
- # re-frame (10)
- # reagent (1)
- # reitit (7)
- # rewrite-clj (3)
- # shadow-cljs (63)
- # sql (19)
- # tools-build (74)
- # tools-deps (32)
- # transit (1)
- # xtdb (5)
I'm trying to switch from lein-figwheel to figwheel-main. It now compiles my cljs using the settings in figwheel-main.edn and dev.cljs.edn. However, the websocket keeps disconnecting:
[goog.net.WebSocket] Opening the WebSocket on
[goog.net.WebSocket] WebSocket opened on
[goog.net.WebSocket] The WebSocket on closed.
[goog.net.WebSocket] The WebSocket disconnected unexpectedly: undefined
How do I begin investigating this error? There's no error to be found anywhere that I've been able to spot.This is using:
[com.bhauman/figwheel-main "0.2.16"]
[cider/piggieback "0.5.3"]
[nrepl "0.9.0"]
:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}
In case that is of any use.My figwheel-main.edn is nothing special:
{:open-url false
:open-file-command "emacsclient"
:watch-dirs ["src"]
:css-dirs ["resources/public/css"]}
Same goes for dev.cljs.edn:
{:main no-adventur.ui.director
:optimizations :none
:pretty-print true
:source-map true
:asset-path "/js/compiled/out"
:output-to "resources/public/js/compiled/adventur.js"
:output-dir "resources/public/js/compiled/out"
:foreign-libs [{:file "public/js/slip.js" :provides ["slip"]}]}
So it is able to reach it, but possibly not on the new protocol? Unexpected disconnects are pretty expected at this point. 🙃
I have now been able to fix this issue. I'll report back when I find which dependency was the culprit.
For posterity: The culprit turned out to be `[ring "1.7.1"]` . This collided with figwheel-main's `1.9.1` of the same library, and in turn jetty and jetty's websocket implementation.
Edit 30 minutes later: I have been able to fix this. Will report back when I figure out which dependency was the culprit.
The culprit turned out to be [ring "1.7.1"]
. This collided with figwheel-main's 1.9.1
of the same library, and in turn jetty and jetty's websocket implementation.