This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # beginners (19)
- # boot (118)
- # capetown (4)
- # cider (37)
- # cljs-dev (69)
- # cljsjs (23)
- # clojure (212)
- # clojure-austin (10)
- # clojure-india (3)
- # clojure-italy (2)
- # clojure-mke (1)
- # clojure-nl (1)
- # clojure-russia (5)
- # clojure-spec (52)
- # clojure-uk (86)
- # clojurescript (31)
- # core-async (9)
- # cursive (123)
- # datomic (91)
- # emacs (22)
- # events (3)
- # hoplon (68)
- # klipse (4)
- # lambdaisland (10)
- # leiningen (2)
- # off-topic (14)
- # om (14)
- # onyx (44)
- # perun (14)
- # proton (20)
- # re-frame (15)
- # reagent (10)
- # ring-swagger (9)
- # specter (18)
- # untangled (3)
- # vim (26)
- # yada (4)
@plexus, @bhauman, Found out what the issue was. Google chrome was caching the previous build, which prevented the websocket from connecting. Everything looks to be fine now.
Hello! I have two reagent apps, which share the same
project.clj at the moment. But now I want to use material ui in one of them, which brings it's own react. So I need to exclude it for one app from the dependencies (`[reagent "0.6.0" :exclusions [org.clojure/tools.reader cljsjs/react]]`), which breaks the other app. Can I somehow use the same
lein cljsbuild process to build both (maybe with lein profiles?) or should I separate them completely and run the build process twice?
why not use the same deps in both apps?
That is what we did before, but switching both to material is not an option. And as I said, the material dependency brings it's own react, so I need to exclude it (see https://github.com/madvas/cljs-react-material-ui#installation)
@igel the README is bit misleading, in the newest cljs-react-material-ui you only need to exclude react and react-dom, the example is outdated for reagent.
Thanks for pointing that out. 👍 But still I don't know how can I exclude it from one build, but not the other
I don't understand, why not exclude it and explicitly specify it in both cases?
So, you suggest to explicitly require the react bundled with material ui in the non-material app? Or what do you mean by explicitly specify it in both cases?
In the readme, they suggest to remove the entire react dependency from reagent, so it won't be available, will it?
reagent just picks what's in
to explicitly specify deps, just lad the cljsjs.react you want and exclude it everywhere it's implicitly required (e.g. material-ui, reagent)
lein deps :tree to see if you caught 'em all
Anyone have experience wrapping Bootstrap for use in ClojureScript? Or any (ideally successful) encounters of interop between Bootstrap in JS and ClojureScript code?
I’m looking at using commercial components built in/on BackboneJS and would like to use them in ClojureScript vs ES5 or ES6.
@bobcalco it’s possible, but it’s not really a popular option since BackboneJS isn’t particularly FP friendly
still you can probably make it work alright, but I’m not aware anything new-ish that does that. Some people were doing some Backbone stuff 3 years ago if I recall.
@bobcalco yeah this is the post I remember http://squirrel.pl/blog/2012/10/20/hello-backbone-and-clojurescript/
yep shooting for a release Friday, there’ll be a new guide on the ClojureScript website that walks everyone through it
What’s the best approach to reading CLJ macros in CLJS? I keep running into issues that seem to be just plain syntactical
@dnolen Yeah I’ve seen that - thanks. Looking forward to CLJS automatically generating externs. 🙂
seems to me the sweet spot for ClojureScript with Backbone would be in the Model abstraction, and possibly the wiring (controller). But yeah — Backbone is MVC is noun-centric is not FP friendly, that’s the issue.
Using figwheel on a clojurescript project. I was expecting cors headers so I could point to a specific server, but I’m not seeing them. Do I need to configure that?
it should do CORS: https://github.com/bhauman/lein-figwheel/blob/master/sidecar/src/figwheel_sidecar/components/figwheel_server.clj#L222-L224
otherwise you are always free to serve the files using your own dev server and configure it however you like