This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-13
Channels
- # aleph (16)
- # announcements (8)
- # aws (5)
- # babashka (54)
- # beginners (48)
- # calva (7)
- # cider (7)
- # clojure (209)
- # clojure-brasil (4)
- # clojure-europe (20)
- # clojure-italy (12)
- # clojure-nl (21)
- # clojure-uk (69)
- # clojurescript (24)
- # cursive (11)
- # datascript (7)
- # datomic (47)
- # emacs (14)
- # graphql (20)
- # hoplon (25)
- # jobs (1)
- # kaocha (1)
- # leiningen (14)
- # meander (7)
- # off-topic (44)
- # other-languages (1)
- # pathom (20)
- # re-frame (2)
- # reagent (51)
- # reitit (3)
- # remote-jobs (1)
- # shadow-cljs (46)
- # spacemacs (5)
- # sql (65)
- # tools-deps (86)
- # vim (11)
I used shadow-cljs to build my CLJS code as a JS library, and then imported it into my storybook project
@U2J4FRT2T thank you for the suggestion.
@U4YGF4NGM it is worth it though? What are the pros and cons?
going to try it again soon, company I’m at also wants to use storybook with CLJS (maybe)
does anyone happen to have a minimal example using cljs.analyzer/macroexpand-1
? I can't seem to get this to work from a cljs-repl:
(a/macroexpand-1 (a/empty-env) `(when true 5))
Error: null
at new cljs$core$ExceptionInfo (/js/cljs-runtime/cljs.core.js:37203:10)
at Function.eval [as cljs$core$IFn$_invoke$arity$3] (/js/cljs-runtime/cljs.core.js:37264:9)
you can do normal (macroexpand-1 '(when true 5))
is the tools.analyzer not meant to be used in this way? It's for a code walking macro and need to supply an external env
(just trying to get the basic env working initially)
Hi all. Is there a reason why shadow-cljs can't find clj-http.client ? I've added it to shadow-cljs dependencies. I can use it in the repl but when I go shadow-cljs watch {my-build} I get "The required namespace "clj-http.client" is not available, it was required by "my/events.cljs". "clj_http/client.clj" was found on the classpath. Should this be a .cljs file?"
@edmund691 clj-http is a clojure library and won't work from clojurescript. Maybe you could try https://github.com/r0man/cljs-http
@U064UGEUQ Thank you very much 😄
Does anyone know a tool that allows you to debug source mappings? I’m seeing some odd mappings in my error handling software and would like to verify if the source maps really point to the wrong spot.
I've used https://sokra.github.io/source-map-visualization/#custom in the past but it has issues with bigger files
Interesting that there’s no CLI tools for this
Or doesn’t seem to be
maybe this helps https://clojureverse.org/t/server-side-decoding-of-javascript-sourcemaps/1591/3?u=thheller
Interesting, your snippet on ClojureVerse looked like exactly what I was looking for but getting strange results from it
Or maybe I’m using a build from a different branch :thinking_face:
Actually, works perfectly!