This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-18
Channels
- # aws-lambda (3)
- # beginners (57)
- # boot (3)
- # bristol-clojurians (1)
- # cider (38)
- # cljs-dev (23)
- # clojure (35)
- # clojure-italy (32)
- # clojure-nl (6)
- # clojure-spec (35)
- # clojure-uk (132)
- # clojurescript (34)
- # cursive (22)
- # data-science (1)
- # datomic (54)
- # devcards (1)
- # duct (5)
- # editors (7)
- # euroclojure (4)
- # fulcro (40)
- # graphql (1)
- # hoplon (6)
- # immutant (5)
- # jobs (1)
- # off-topic (22)
- # om (1)
- # planck (17)
- # portkey (1)
- # protorepl (12)
- # re-frame (97)
- # reagent (67)
- # reitit (16)
- # ring-swagger (1)
- # shadow-cljs (98)
- # spacemacs (8)
- # sql (20)
- # tools-deps (60)
any have any ideas on how to get started with https://github.com/uber/kepler.gl in cljs? Can NPM dependencies be consumed to be used in browser applications?
@sofra would you also like to try https://clojureverse.org/t/guide-on-how-to-using-importing-npm-modules-packages-in-clojurescript-projects/2298 ?
@jiyinyiyong I am very interested in shadow-cljs but I am trying to use this library in an existing quite large and old cljs code base and to be honest it is a PITA to try to use a different build tool just for this one lib.
I'm quite interested, for a large project you mentioned, is there any feature you are using that is now missing in shadow-cljs?
What do people use for tracking errors in ClojureScript apps? We use sentry for tracking errors on our backend Clojure services, is it also good for ClojureScript?
I think so. We are using Rollbar for both back and front ends
We are using sentry for almost 2 months on both sides. Works nice and integration was not so hard
We use sentry on the frontend too. Basic functionality works. Haven't pushed it much beyond that.
I continue to have major issues getting es6 foreign-libs to work with clojurescript. Here is the minimal source code for my example with cljs.main https://bitbucket.org/briangorman2/broken-cljs/src/master/
have you tried npm i @cljs-oss/module-deps
?
@bfast don't know if you saw but this is all a whole lot easier in shadow-cljs. see https://shadow-cljs.github.io/docs/UsersGuide.html#classpath-js. basically just copy index.js
into the src/hello_world
folder and (:require ["./index.js" :as math])
. no :foreign-libs
config required.
thanks @U05224H0W ill give it a shot
hey everyone. I have a clojurescript repl going from boot into chrome but when I give it a command to output anything it shows up on the browser console instead of back into the terminal where the repl is. Anyone know off the top of your head how to remedy that?
Try using (enable-console-print!)
@vigilancetech thatโs odd, REPLs should handle that for you
@dnolen yeah, it seems it used to work a few weeks ago. I know I had to hack something to get the newlines right then, but not this problem. Can't think of what changed.
@spinningtopsofdoom it is enabled
hmmm.. works in chromium. My chrome must be broken somehow
hello, I'm trying to understand the internals of how cljs.test
works, one thing that's bugging me is the :assert-type eq
when the assertion is a =
, can someone tell where this information come from? I tried searching the whole clojurescript source but I can't find it anywhere
@wilkerlucio search the cljs/test.clj source as well
@bhauman you mean this one? https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/test.cljc
nothing there =/
I tried searching the whole project, also downloaded and tried to grep on it, or I'm very blind or it's very well hidden ๐
@wilkerlucio where are you seeing this specifically?
@bhauman when I look at the test report, I wrote a custom reporter (thanks to devcards code, that was really helpful on figuring this part out), and on the reporter I see this information
it comes out of the test, but I can't find where it's defined