This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-08
Channels
- # announcements (12)
- # aws (4)
- # beginners (92)
- # calva (2)
- # cider (28)
- # clara (11)
- # clj-kondo (5)
- # cljdoc (9)
- # cljs-dev (195)
- # cljsjs (1)
- # clojure (82)
- # clojure-italy (18)
- # clojure-losangeles (1)
- # clojure-nl (2)
- # clojure-spec (10)
- # clojure-uk (51)
- # clojurescript (40)
- # cursive (7)
- # datomic (19)
- # duct (9)
- # emacs (2)
- # figwheel (3)
- # fulcro (56)
- # graphql (8)
- # jobs (3)
- # luminus (2)
- # off-topic (15)
- # re-frame (5)
- # reitit (3)
- # ring (5)
- # shadow-cljs (22)
- # slack-help (2)
- # sql (51)
- # test-check (9)
- # vim (64)
- # yada (1)
morning! is there any way to typehint that a variable is of a certain native JS type? ie.. function / map / set..
good evening! i am currently working with the ' [org.clojure/data.xml "0.2.0-alpha6"]' lib. And with the following code '
(xml/emit-str (xml/element :foo:bar {} "baz")) ' i getting NamespaceError:. is their a work around?
it works just fine for me
(clojure.data.xml/element :foo:bar {} "baz")
{:tag :foo:bar, :attrs {}, :content ("baz")}
Are many people using ClojureScript on the server? Just curious, as it seems to have a couple of benefits over Clojure (e.g. no JVM => lighter on resources / boot time)
@lilactown in what ways? error messages etc?
errors are about the same, but it’s harder for newbies to get a REPL (we rely on hot reload a lot) and there just aren’t a lot of libraries
Hyperfiddle runs clojurescript in aws lambda
@dustingetz oh; my usecase would be lambda a well
(right now shadow-cljs is blocking compilation due to it, and I don’t want to turn off warnings entirely)
@lilactown you can set :devtools {:ignore-warnings true}
so it doesn't block reloading
I need to add externs for google recaptcha. Work already has some written for other things so I cannot use infer-externs as the guide suggests. In this case, where can I find some official documentation so that I can write these externs and not just mimic what exists?
(guide being https://clojurescript.org/guides/externs)
Has anyone had issues when using [cljsjs/fuse "2.6.2-0"]
with advanced optimizations? When I deploy my app with :optimizations :advanced
I get the following error relating to fuse
.
app.js:1537 Uncaught TypeError: Cannot read property 'substring' of undefined
at Nfa (app.js:1537)
at app.js:426
at app.js:425
at app.js:275
at Array.sort (<anonymous>)
at hb (app.js:275)
at kb (app.js:275)
at Hg (app.js:425)
at Kg (app.js:426)
at Jg (app.js:425)
@jacobhaag17 you can enable source-maps
in your minified builds
https://clojurescript.org/reference/compiler-options#source-map
Then the browser will tell where the code throws.
there's also https://clojurescript.org/reference/compiler-options#pseudo-names which promises > determines whether readable names are emitted. This can be useful when debugging issues in the optimized JavaScript and can aid in finding missing externs. Defaults to false.