cljss icon indicating copy to clipboard operation
cljss copied to clipboard

java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter

Open knubie opened this issue 4 years ago • 2 comments

I'm trying to set up cljss to develop on locally so that I can submit a PR, but I'm having trouble getting it started.

There doesn't seem to be any info in the README about setting up the environment, so I tried running

lein figwheel

but I'm getting the following error:

Exception in thread "main" java.lang.ExceptionInInitializerError
        at clojure.main.<clinit>(main.java:20)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter, compiling:(org/httpkit/server.clj:1:1)

I'm new to clojure on the JVM (I mostly use clojurescript with shadow-cljs), so I could use some help getting set up. Thanks!

knubie avatar Oct 15 '19 12:10 knubie

Hello. Sorry I'm not taking PRs right now since a rewrite is planned https://github.com/clj-commons/cljss/issues/57

roman01la avatar Oct 15 '19 13:10 roman01la

@roman01la Got it, thanks for the quick reply. I'll describe my issue here then;

This code:

(defstyled foo :div {})

(def some-component []
  [foo {:style {:font-size "12px"}}]

Will raise a warning from React like:

Warning: Unsupported style property font-size. Did you mean fontSize?

Which I think could be fixed by camel casing the style map here: https://github.com/clj-commons/cljss/blob/master/src/cljss/core.cljs#L106

knubie avatar Oct 15 '19 13:10 knubie