You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to try out strokes for d3 visualizations in Clojurescript. I add [net.drib/strokes "0.5.1"] to my dependencies and [strokes :refer [d3]] to my project and I get the error: TypeError: mrhyde.mrhyde is undefined. I'm using figweel and [org.clojure/clojurescript "1.8.40" :scope "provided"].
I'm getting a similar exception, just playing with some of the samples. I'm using [org.clojure/clojurescript "1.7.228"] and [figwheel-sidecar "0.5.0"]
clojure.lang.ExceptionInfo : failed compiling file:resources/public/js/compiled/out/mrhyde/mrhyde.cljs
clojure.lang.ExceptionInfo : Invalid :refer, var var clojure.string/re-matches does not exist in file resources/public/js/compiled/out/mrhyde/mrhyde.cljs
Error on file , line , column
I took another look at this today. It seems like version 0.5.1 of mrhyde (which is required by the current 'official' clojars version of strokes) refers in "re-matches" from clojure.string which is now part of core:
There are two different versions in clojars com.davidkay and org.clojars.davidkay that you might have more luck with. These pull in a newer version of mrhyde that has re-matches taken out of the refer.
Another solution is to use this actual repo and manually pull in the namespace. If you look at the project.clj, you'll see that the dependencies are updated. This is not a great way to go for a production project.
Finally, I'm solving my problem by using reagent by itself. It has decent svg manipulation. It looks like that's the best I can come up with at the moment. Hope that helps!
Activity
mbossenbroek commentedon Apr 6, 2016
+1
I'm getting a similar exception, just playing with some of the samples. I'm using
[org.clojure/clojurescript "1.7.228"]and[figwheel-sidecar "0.5.0"]behaviary commentedon Mar 7, 2017
Wow, still open almost a year later. I'm running into this exact error. Did either of you figure this out back then?
ChipNowacek commentedon Apr 14, 2017
Sure could use this library — and, given my inability to sort out the error, I can't take the lead. Is there a way I can help out?
behaviary commentedon Apr 14, 2017
I took another look at this today. It seems like version 0.5.1 of mrhyde (which is required by the current 'official' clojars version of strokes) refers in "re-matches" from clojure.string which is now part of core:
There are two different versions in clojars com.davidkay and org.clojars.davidkay that you might have more luck with. These pull in a newer version of mrhyde that has re-matches taken out of the refer.
Another solution is to use this actual repo and manually pull in the namespace. If you look at the project.clj, you'll see that the dependencies are updated. This is not a great way to go for a production project.
Finally, I'm solving my problem by using reagent by itself. It has decent svg manipulation. It looks like that's the best I can come up with at the moment. Hope that helps!
ChipNowacek commentedon Apr 14, 2017
Ooohhh. That does help. Maybe I can get away with direct manipulation from within reagent. Seen anyone do a force graph?
Thanks tons.
wpcarro commentedon Oct 6, 2017
Having the same error with:
I'm new to Clojure and ClojureScript but I'm looking to build a fairly robust D3 interface, so I was hoping that using strokes would be feasible.