clojurescript

ClojureScript, a dialect of Clojure that compiles to JavaScript http://clojurescript.org | Currently at 1.10.879
Helins 2021-02-17T17:53:09.213800Z

Just as an informal survey, are there any CLJS devs not using Chrome (or a Chromium-based browser) most of the time when working? If you don't, why not?

seancorfield 2021-02-17T18:17:43.215400Z

@adam678 I'm just starting back down the cjls path and I'm using Microsoft's latest Edge, which is based on Chromium (so Chrome extensions all seem to work). I'm not sure whether that counts as a "yes" or a "no" to your question?

Helins 2021-02-17T18:23:30.215700Z

It's a "no". Thanks, I fixed my question.

1
allenj12 2021-02-17T21:25:46.217100Z

has anyone run into this before?

ERROR - [JSC_LANGUAGE_FEATURE] This language feature is only supported for ECMASCRIPT_2018 mode or better: RegExp flag 's'.
var post_syntax_body = clojure.string.trim(cljs.core.re_find(/(?:(?!~|See also: ).)*/s,body_onward_stringed));
I am running of the reagent template here https://github.com/reagent-project/reagent-template. What I have works when I use figwheel but fails when I try to uberjar. the original line it is complaining about
post-syntax-body (cstr/trim (re-find #"(?s)(?:(?!~|See also: ).)*" body-onward-stringed))

vlad_poh 2021-02-17T21:50:52.217900Z

is there a nicer way to do this (. js/document (getElementById "app")) ?

ajithkumar 2021-02-18T09:52:41.223300Z

(-> "app" (js/document) .getElementById)

2021-02-17T21:53:27.218500Z

@kbosompem (.getElementById js/document "app")

đź‘Ť 1
Kira McLean 2021-02-17T21:58:51.220Z

does anyone write UI-based tests (like interactive ones where you fire fake events and check the UI) with devcards? I’m trying to get some tests like this to run with karma atm and am struggling to get the devcards ui load in the browser launched by karma.. wondering if anyone else has had any luck with this.

Kira McLean 2021-02-17T22:36:38.221300Z

I don’t know without digging into the config for your project, but it looks like something is just targeting the wrong js version. Can you force your build tool (whatever you’re using to compile the cljs) to target the different js version?

allenj12 2021-02-17T22:38:48.221500Z

I am using lein, I can look up how to force a javascript version if possible

Kira McLean 2021-02-17T22:39:21.221700Z

do you know what is doing the compilation of cljs->js? probably either figwheel or shadow-cljs..

Kira McLean 2021-02-17T22:39:54.221900Z

anyway, I’m not sure, and realize vague suggestions with no context are probably not very useful. Just thought that’s maybe a thread to pull on if you haven’t gone down that road already.

allenj12 2021-02-17T22:42:50.222100Z

Yea it is helpful, helps me think about the problem at the very least! https://github.com/emezeske/lein-cljsbuild I am using this

đź‘Ť 1