This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-12
Channels
- # announcements (4)
- # babashka (93)
- # beginners (43)
- # calva (56)
- # cherry (4)
- # clerk (58)
- # clj-otel (4)
- # cljs-dev (1)
- # clojure (31)
- # clojure-conj (1)
- # clojure-dev (30)
- # clojure-europe (88)
- # clojure-india (2)
- # clojure-italy (3)
- # clojure-nl (1)
- # clojure-norway (17)
- # clojure-uk (2)
- # clojurescript (5)
- # clr (13)
- # conjure (2)
- # cursive (4)
- # data-science (4)
- # datalevin (1)
- # fulcro (3)
- # gratitude (7)
- # hyperfiddle (27)
- # kaocha (3)
- # lsp (9)
- # malli (6)
- # nbb (1)
- # off-topic (41)
- # pedestal (2)
- # practicalli (1)
- # rdf (3)
- # re-frame (3)
- # reitit (10)
- # releases (1)
- # shadow-cljs (8)
- # testing (3)
- # vim (2)
- # xtdb (7)
Hi, I'm having trouble getting cljs-devtools working. Chrome is showing this error in the console:
main.js:430 CLJS DevTools: some custom formatters were not rendered.
I followed instructions to enable custom formatters and reloaded, etc. Still get the error.
I'm using Calva and my edn file is:
{:source-paths ["src"]
:dependencies [[binaryage/devtools "1.0.6"]
[cjohansen/dumdom "2023.03.27"]]
:dev-http {8700 "public"}
:builds
{:app {:target :browser
:output-dir "public/js/compiled"
:asset-path "/js/compiled"
:modules {:main {:init-fn play.core/init}}}}}
The app is behaving correct. I'm just getting started so would like to explore and have the whole toolset working 🙂. Any ideas?What target am I supposed to use for web workers? I had no luck with either ESM or browser, for browser I’m getting browser bootstrap used in incorrect target
as there ain’t no DOM.
Web workers should be a module with :web-worker true
(cf. https://shadow-cljs.github.io/docs/UsersGuide.html#_web_workers ). The linked page also includes a simple example of actually starting the worker and posting a message to it