Open floybix opened 10 years ago
Hi Felix,
The ClojureScript compiler and/or lein cljsbuild has changed how it detects and pulls in JavaScript sources from JAR files. I think @cemerick has explained the change on the original issue (https://github.com/emezeske/lein-cljsbuild/issues/95) but I haven't had time to update all of the affected libraries.
If you want to make the changes and test under latest tooling, I'd love to get a pull request
any update on this? I've been using d3 in cljs projects but would love to switch to C2 where possible
Hi @kelseyq,
I think much of the DOM stuff in C2 isn't worth messing with anymore: React.js is a much better implementation of many of the same ideas. Take a look at Sablono (https://github.com/r0man/sablono) for DOM stuff---you can still use all of C2's scale and layout helpers in that framework.
If I can ask: What in particular appeals to you about C2 vs. D3 from ClojureScript?
interested in the viz helpers. would i use those with sablono by just not importing core?
Yeah, you can just import whatever fns you need---most don't rely on core whatsoever.
Hi,
I ran into errors using c2 with recent clojurescript versions. For example if I make the following patch to the
c2-demos/hello-bars
project.clj
:Then I get the following from
lein cljsbuild
:And fatal runtime errors:
I'm not sure how to go about investigating this.
Best Felix