This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-30
Channels
- # babashka (46)
- # beginners (234)
- # bristol-clojurians (4)
- # cider (7)
- # clj-kondo (39)
- # cljdoc (8)
- # cljs-dev (10)
- # cljsjs (10)
- # cljsrn (24)
- # clojure (84)
- # clojure-brasil (7)
- # clojure-europe (12)
- # clojure-germany (4)
- # clojure-italy (3)
- # clojure-nl (41)
- # clojure-spec (17)
- # clojure-uk (66)
- # clojurescript (64)
- # conjure (161)
- # cursive (12)
- # data-science (45)
- # datomic (20)
- # devops (11)
- # docker (2)
- # duct (9)
- # events (7)
- # figwheel (1)
- # figwheel-main (20)
- # fulcro (32)
- # graalvm (5)
- # helix (82)
- # jackdaw (9)
- # jobs-discuss (19)
- # kaocha (11)
- # local-first-clojure (1)
- # malli (6)
- # meander (3)
- # nrepl (12)
- # off-topic (2)
- # other-lisps (15)
- # pathom (14)
- # rdf (6)
- # re-frame (8)
- # reactive (1)
- # reagent (5)
- # reitit (4)
- # rum (3)
- # shadow-cljs (77)
- # spacemacs (3)
- # sql (9)
- # test-check (31)
- # tools-deps (13)
- # vim (62)
- # xtdb (18)
Using figwheel, I'm getting an issue with uix: > java.io.FileNotFoundException: /src/target/dev/public/frontend.out/cljs/loader.js (No such file or directory) Initial build is fine, but reloading is not. I suspect it's an issue due to uix using the cljs.loader namespace. I currently have uix in my built-inputs due to various reasons. Here's the line where uix uses cljs.loader: https://github.com/roman01la/uix/blob/master/core/src/uix/core/lazy_loader.cljc#L6
Hi all, silly question I seem to be stuck on...
When I run clojure -m figwheel.main
I get the figwheel-main page opened and connected.
However, when I specify a buildfile dev.cljs.edn
with the contents:
{:main myapp.moo}
with the corresponding file src/myapp/moo.cljs
:
(ns myapp.moo)
(js/console.log "Hello there world!")
It seems to be unable to connect using the command: clojure -m figwheel.main --build dev --repl
Am I missing something?Actually, that appeared to be a dependency issue: It now logs
moo.cljs:3 Hello there world!
console.js:203 [.WebSocket] Opening the WebSocket on
websocket.js:283 WebSocket connection to '' failed: Error during WebSocket handshake: Unexpected response code: 500
console.js:203 [.WebSocket] An error occurred: undefined
console.js:203 [.WebSocket] The WebSocket on closed.
console.js:203 [.WebSocket] The WebSocket disconnected unexpectedly: undefined
console.js:203 [.WebSocket] Seconds until next reconnect attempt: 1
console.js:203 [.WebSocket] Opening the WebSocket on
websocket.js:283 WebSocket connection to '' failed: Error during WebSocket handshake: Unexpected response code: 500
console.js:203 [.WebSocket] An error occurred: undefined
A 500 while creating the websocket... hmm... My best guess is a jetty version conflict.
I would have hoped you'd get more details though, maybe in the repl or something. But as you didn't mention it, I'm guessing you didn't.
@petr See this: https://figwheel.org/docs/main_script.html Copied from about halfway down the page: Figwheel and compile options when using `--main` Since the `-m` and `-b` options cannot be used at the same time you may be left wondering how to supply the options that you would normally supply with the `--build` option to the `--main` option. You can do this by providing your `[build-id].cljs.edn` file to the `-co` option. Figwheel will pick up both the metadata config along with the CLJS compiler config. For example the following will allow you to use the config in your `dev.cljs.edn` file:
$ clj -m figwheel.main -co dev.cljs.edn -m example.hello
On second glance, I don't think that applies to you, since you're running the clojure
command, not clj
. Disregard.