Fork me on GitHub

anyone know of a good article contrasting es6 modules with closure lib modules/namespaces?


i’d like to better understand the design differences


Any ideas why I would get the following error when trying to use cljs.reader/read-string in planck?

cljs.user=> (cljs.reader/read-string "{:keyword :value}")
    undefined is not a function (evaluating 'sb.toString$()')


@jmmk: This is probably the same root cause as With Planck 1.5, one way to work around it is to not (require ‘cljs.reader) and just ignore the analysis warnings. It is working in Planck master (owing to the use of the cljs.js capability to load pre-compiled namespaces.


@jmmk: Planck master is trivial to build, if you have things like Xcode already on your box.

git clone 
cd planck


@jmmk: A proposed patch to the sb.toString$() issue is in


has any have a clean example on how to setup reagent with material-ui? I've cloned this repo: and gotten it to work. Then tried to start my own project but getting stuck with an error:

Warning: getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead. Warning: AppCanvas(...): No `render` method found on the returned component instance: you may have forgotten to define `render` in your component or you may have accidentally tried to render an element whose type is a function that isn't a React component.
But I have modified my secretary mount point to render with reagent/render-component but still get the error

Pablo Fernandez07:08:39

I have clojurescript project, starting from the reagent template ( I commented out all clojurescript code but in the compiled code I still get this line: if(typeof goog == "undefined") document.write('<script src="js/out/goog/base.js"></script>’); I’m trying to get rid of it to attempt running my cljs code in nashorn, which doesn’t implement document. Any ideas where that line is coming from?


I am a bit confused with npm clojurescript and how to use a module, has someone an idea how to translate the following into cljs: ?


(def Alpine (cljs.nodejs/require 'alpine'))
(let [alpine (Alpine. "%h %s %B")
        data   (.parseLine alpine " 403 4321")])


rburns: thank you, I wasn't sure how to deal with the .new


thank you. I think I need to collect more of those distributed pieces of information


What’s currently the best way of doing “isomorphic” ClojureScript … I’ve been looking into Nashhorn and I was kinda impressed (don’t really want to introduce the NodeJS dependency) … are there currently some libraries you would recommend?


@joelgluth: @pupeno mentioned recently, don’t know how good it is, looks solid

Pablo Fernandez09:08:00

joelkuiper: omelette does it and you can clone it and run it on your machine, very straightforward but the way it does it is not compatible with figwheel. I have an idea on how to fix that, which I’m going to try soon.


Ah cool, Figwheel is currently a major selling point for using ClojureScript for me simple_smile so would be lovely to have that support

Pablo Fernandez09:08:06

and I’ll probably write a blog post about it as well.


Thanks, I’ll take a look and keep an eye out on the updates/blog post as well simple_smile

Pablo Fernandez09:08:26

Anyway, food, brb


Have a good one simple_smile


can't seem to render this reagent component:

(defn about-page []
  [:div [:h2 "About peaktime-ui-reagent"]
   [:div [:a {:href "#/"} "go to the home page"]
           [ui/IconButton {:iconClassName "mdfi_navigation_more_vert"}]
           [ui/IconButton {:iconClassName "mdfi_action_favorite_outline"}]
           [ui/IconButton {:iconClassName "mdfi_action_search"}] ] 
   ]] )
it tells me that :
Warning: IconButton(...): No `render` method found on the returned component instance: you may have forgotten to define `render` in your component or you may have accidentally tried to render an element whose type is a function that isn't a React component.

Uncaught TypeError: inst.render is not a function
` any clues as to what's going on? or how I should debug this?


@sjol: show us ui/IconButton too


usage looks correct to me..


does anyone here understand ref cursors in Om? I'm having one of those experiences where what I thought I knew is diverging from what i'm actually experiencing...


@acron: maybe a good question for the #C06DT2YSY channel


didn't realise there was one! thanks!


does something like this exist for cljs?


@pupeno: I have a blog post about that coming today


server side rendering

Pablo Fernandez14:08:13

arohner: oh! cool. Looking forward to it.


@jellea: In Planck you can now pass -j foo.jar -j bar.jar to have it consume JAR deps.

Pablo Fernandez14:08:08

arohner: can I ask you, what approach did you take?


good stuff — i’m using planck all the time for tiny hacking sessions, this will be very useful


I was so excited to install planck when it came out, but then...

~  brew install planck
planck: OS X Mavericks or newer is required.


pupeno: I got it half working, and decided it wasn’t worth the trouble

Pablo Fernandez15:08:59

arohner: what was your approach?


Loading the compiled JS in nashorn


@bostonaholic: Planck could probably be made to work on earlier versions of OS X. (It is currently using the Objective-C bindings to JavaScriptCore, which isn’t necessary.)


@bostonaholic: I’ll try turning off JSC_OBJC_API_ENABLED and see if it is a goat or yak.


@darwin: @crisptrutski is right I just copied the example from tuhlmann/reagent-material repo but I started with a fresh lein new reagent <project name> as the readme states that not all libs included in the project were necessary because this is pulled from a bigger code base. I can create a normal reagent component and render it, the lein template works, but as soon as I try Material-ui components I get those render errors


You can just download planck and run it


i'm on 10.9.5


It turns out it is not too hard to extend Planck back to OS X 10.7 Lion.


Problem is, I don’t have any pre-Mavericks hosts to test upon. If anyone wants to see if it actually works, I put a 10.6 beta 1 at (Some things are currently disabled in that version, but the basic REPL functionality is there.)


@danvingo: Even though you can download Planck (without using Homebrew), Planck 1.5 requires Mavericks owing to the fact that it uses the Objective-C bindings to JavaScriptCore.


I see, I never memorised apples marketing os names, so wasn't sure which version is what


Anyone using CIDER with figwheel’s sidecar repl and cider’s test running? It can’t seem to find test namespaces, even though they’re definitely compiling...


ANN: Garden is now on Clj 1.7 and Cljs 1.7.28, after migrating 3000 lines from cljx to cljc. The new Cljs repl and tests provide the fastest builds ever seen for running 245 tests using the built-in cljs.test. All this speed—thanks to @dnolen. Try a local snapshot of Garden, and let us know what you think!


@pri: sounds like quite an effort on your part - well done simple_smile


Is there a reference anywhere of the correspondences between clojure types and clojurescript types


e.g. if I’m writing instances for a protocol that ought to apply to most Js and Clojure types


if I want to instantiate for String I can do java.lang.String and… js/String?


I think that’s right, but a reference that just listed them out would be helpful simple_smile