This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-22
Channels
- # beginners (20)
- # boot (5)
- # cider (14)
- # cljs-dev (15)
- # cljsrn (1)
- # clojure (81)
- # clojure-greece (7)
- # clojure-italy (17)
- # clojure-spec (5)
- # clojure-uk (15)
- # clojurescript (143)
- # data-science (1)
- # datomic (7)
- # defnpodcast (4)
- # docs (1)
- # figwheel-main (1)
- # fulcro (37)
- # graphql (1)
- # hoplon (3)
- # luminus (1)
- # reitit (5)
- # shadow-cljs (10)
- # spacemacs (5)
- # tools-deps (14)
- # vim (7)
I keep getting this error
Dynamically loaded function not found. You forgot to add a dependency to your
classpath.
{:sym taoensso.sente/make-channel-socket-server!}
even though i have that dependency on my class path and i’m able to invoke that function in my application code myself
Figured it out, it was actually a Java 10 issue
downgrading to Java 8 fixed it
the error complained about make-channel-socket-server!
but it was actually failing to include the default webserver adapter taoensso.sente.server-adapters.http-kit
however, I’m using immutant so i didn’t notice the problem in my application code
I just did an experiment which didn't seem to work. Looking for some confirmation that its not supposed to 😐. I have a .css file in which one of the selectors is
.hide {
display: none !important;
}
. I comment it out and see the page has been affected. So I put this selector in co-located CSS of my component hoping that the page will look good again. But it doesn't so the co-located CSS has not worked. The interesting thing is that the component rendering is done in hiccup, with the whole render function enclosed in (html ...)
. Am I correct to assume that if I want to use co-located CSS then I should stay away from hiccup?@cjmurphy what’s the class on the actual dom element on the page?
the co-located css will generate a class name like ucv_ui_root_Root__computer-content
for a CSS selecter like [:.computer-content {...}]
I can see the book talks about it: "In the above example, the upsert results in this CSS on the page:". But I don't know how to use Chrome to view the page html of the page I'm looking at in Chrome. 'View page source' just shows me the starting page, the index.html
page.
Hmm - just thought - I'm probably not doing the 'upsert-css' step. What I'm doing should work - I guess that's my real question - I'll look at this later. Thanks @currentoor
right click and inspect
@cjmurphy real quick, you are using :classNames
right?
how are you setting the class on the hiccup element?
and you’re using soblano not hiccup right, hiccup is server only i thought
yeah that’s the problem
you have to do something like [:div #signupemailsent.col-sm-7 {:class hide} ...]
where hide comes destructured from the fourth argument to defsc
, after this, props, and computed
i used to use soblano all the time, but now fulcro’s dom macros are expressive enough, and way faster
can you please paste the whole component here?
or in a gist?
might be obvious then
that is also a problem, yes…
first, second, last doesn’t really matter
these problems commute
I'll do a gist if this really is a problem, but I suspect it is not. This is supposed to work, whether you use hiccup or the Fulcro dom macros. The Fulcro way of doing CSS can always replace the file way. I believe that is a true statement.
sounds good