Fork me on GitHub
#clojurescript
<
2020-02-19
>
Shima07:02:34

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)

aisamu13:02:12

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?

👍 4
Shima19:02:49

The problem was in js files. Thanks for answering ^_^

simple_smile 4
Binita Bharati09:02:59

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!

thheller09:02:59

@binita.bharati no, you can not. data.json is purely CLJ

Binita Bharati09:02:33

@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.

actonDev15:02:04

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

thheller09:02:14

yeah docs are pretty much the only way to tell

bartuka12:02:46

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?

bartuka12:02:02

All I read on the web seems to be targeting web-apps

lordie17:02:42

Hello, I'm having a hard time googling this, what does reagent do when you put :<> in the head of a vector?

lordie17:02:40

thanks 🙂