This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-19
Channels
- # announcements (10)
- # aws (3)
- # aws-lambda (1)
- # babashka (24)
- # beginners (57)
- # boot (5)
- # calva (20)
- # chlorine-clover (3)
- # cider (14)
- # clj-kondo (37)
- # clojars (17)
- # clojure (200)
- # clojure-dev (40)
- # clojure-europe (9)
- # clojure-france (7)
- # clojure-gamedev (5)
- # clojure-hungary (4)
- # clojure-italy (8)
- # clojure-losangeles (2)
- # clojure-nl (9)
- # clojure-uk (97)
- # clojurebridge (1)
- # clojured (3)
- # clojuredesign-podcast (23)
- # clojurescript (13)
- # code-reviews (2)
- # component (22)
- # core-typed (7)
- # cursive (64)
- # datascript (12)
- # datomic (60)
- # emacs (6)
- # fulcro (54)
- # graalvm (11)
- # graphql (3)
- # hoplon (25)
- # jobs (1)
- # joker (85)
- # juxt (5)
- # kaocha (10)
- # klipse (8)
- # malli (2)
- # off-topic (36)
- # parinfer (1)
- # pathom (1)
- # re-frame (9)
- # reagent (4)
- # reitit (1)
- # remote-jobs (1)
- # shadow-cljs (24)
- # spacemacs (1)
- # sql (39)
- # tools-deps (10)
- # tree-sitter (18)
- # xtdb (18)
Hi
I'm very new with clojurescript
I download a website template and put it in the resource directory and now after
lein trampoline run -m figwheel.main -b dev -r
I can see the template in the browser but the repl won't work anymore, however, the only change is in the resources
I also don't get any warning or exception
Do you have any idea about the possible reasons?
(The figwheel logs stop just before print clojurescript version)
The CLJS REPL requires the website to start its REPL server (it runs in the browser). That's done by the javascript loaded on the page. Is your template a general one or a CLJS-specific?
Hello,
I am trying to use https://github.com/clojure/data.json from my Clojurescript code. But, the build with shadow-cljs is failing with this error :
[:frontend] Compiling ...
[:frontend] Build failure:
The required namespace "clojure.data.json" is not available, it was required by "bharati/binita/frontend/demo3/main.cljs".
"clojure/data/json.clj" was found on the classpath. Should this be a .cljs file?
Can not I use normal .clj files from .cljs code ?
Thanks!
@binita.bharati no, you can not. data.json is purely CLJ
@thheller - Ah, I see. Just wondering how does the user of a library know if any library is CLJS compatible or not ? (i.e unless the library documentation itself says so ? ) Like, other than using reagent, this is the first time, I am trying to use other libs from clojars. Thanks.
another way is to check if in the source code there are .cljs or .cljc files. If there are only .clj files there no clojurescript support
hello people, I am very new to cljs world and right now I am writing a library to be used in both clojure and clojurescript. I have one feature that uses the local-storage when running on cljs, what is the best approach to test these kind of feature?
Hello, I'm having a hard time googling this, what does reagent do when you put :<>
in the head of a vector?