This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-14
Channels
- # announcements (9)
- # beginners (49)
- # calva (26)
- # cider (6)
- # clj-kondo (17)
- # cljsjs (1)
- # cljsrn (2)
- # clojure (72)
- # clojure-europe (5)
- # clojure-france (8)
- # clojure-greece (1)
- # clojure-italy (5)
- # clojure-nl (9)
- # clojure-spec (49)
- # clojure-uk (17)
- # clojuredesign-podcast (13)
- # clojurescript (137)
- # cursive (15)
- # data-science (1)
- # datomic (55)
- # duct (2)
- # emacs (5)
- # figwheel-main (11)
- # fulcro (11)
- # graphql (1)
- # hoplon (1)
- # instaparse (1)
- # jobs (12)
- # jobs-rus (1)
- # leiningen (1)
- # nrepl (34)
- # nyc (2)
- # off-topic (1)
- # onyx (1)
- # pedestal (1)
- # re-frame (6)
- # reitit (3)
- # remote-jobs (1)
- # shadow-cljs (196)
- # sim-testing (1)
- # spacemacs (9)
- # sql (1)
- # vim (70)
- # xtdb (31)
How would one print detailed compile errors? I’m seeing [Figwheel:WARNING] Could not Compile: Call to clojure.core/defn did not conform to spec. /path/to/file.cljs
but can’t seem to find any more details
hm. I didn’t figure out how to find the logs, but did find that the error wasn’t in the file that was printed, but rather in a clj
file referenced by the cljs
file
Hello friends, Somehow I get served (against expectations) the Figwheel Default Dev Page, whilst I serve an index.html (albeit dynamically from compojure, but that works in a different project too)
I checked out the figwheel-main code, and I see that this page is inserted here if this holds: https://github.com/bhauman/figwheel-main/blob/b5b21d53dbafeef740175161010496da841f1625/src/figwheel/main.cljc#L1844
ie., if on that path in the config there ’s nothing, it inserts that.
question is, why isn’t there anything?
I use M-x cider-jack-in-clj&cljs
, this works in a different project with roughly the same deps, but somehow not here
(update-in
cfg
[:repl-env-options
:ring-stack-options
:figwheel.server.ring/dev
:figwheel.server.ring/system-app-handler]
(fn [sah]
(if sah
sah
#(-> %
(helper/extra-main-hosting extra-mains-name->output-to)
(helper/missing-index
(if (and (:modules options)
(:output-dir options))
{:output-to (str (io/file (:output-dir options) "cljs_base.js"))}
(select-keys (:options cfg) [:output-to])))))))))
`in the logs I do see that the ring server is started, ie. i see the handler being called, but somehow this middleware is inserted