This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-12
Channels
- # beginners (36)
- # boot (11)
- # cider (10)
- # cljs-dev (10)
- # cljsrn (3)
- # clojure (103)
- # clojure-greece (1)
- # clojure-italy (16)
- # clojure-nl (3)
- # clojure-spec (59)
- # clojure-uk (129)
- # clojurescript (125)
- # data-science (29)
- # datomic (30)
- # emacs (12)
- # events (5)
- # fulcro (61)
- # graphql (5)
- # keechma (3)
- # leiningen (9)
- # luminus (7)
- # onyx (26)
- # re-frame (3)
- # reagent (56)
- # reitit (25)
- # ring-swagger (16)
- # shadow-cljs (44)
- # spacemacs (4)
- # specter (2)
- # tools-deps (7)
- # vim (8)
@richiardiandrea you should only ever be loading one :node-library
per node process (during development). if you need 2 use :npm-module
Thanks will try that today and will also try to see if I can change :azure-fn
.
Should this theoretically reload a CSS file placed in ../public/css/main.css
? (I’m not using the bundled server)
:builds {:client {:output-to "../public/js/main.js"
:output-dir "../public/js"
:target :browser
:asset-path "/js"
:modules {:main {:entries [landing-page.client.core]}}
:devtools {:watch-dir "../public"
:after-load landing-page.client.core/run}}}}
Though there is no index.html, it’s entirely generated. And served with firebase serve
.
It’s just a small helper function:
(defn stylesheet
"Particle for defining a stylesheet."
[href]
[:link {:href href
:rel "stylesheet"}])
No macOS. I’ll rummage around a bit and see if I can get it to work.
Otherwise I’ll try to produce a minimal case.
The ../
shouldn’t make a difference, should it?
The ../
is because I had to put src
in a weird place to not make firebase-functions
have a huge hissy fit.
I have been able to import many npm libs already, but I seem to fail on this one: https://github.com/wwayne/react-tooltip it looks pretty straight forward, so I guess I must be overlooking something really stupid:
import ReactTooltip from 'react-tooltip'
<ReactTooltip />
in cljs (using shadow-cljs):
(:require ...
["react-tooltip" :default ReactTooltip])
[:> ReactTooltip>
However, ReactTooltip is undefined
(when do (js/console.log ReactTooltip)
). Why would ReactTooltip
be undefined?@kurt-o-sys try :as ReactTooltip
. sometimes the code is packaged as commonjs which doesn't have default exports.
oh right... you already told me before. I have to write it down somewhere 😛 Thx!
Is there a way to use jars from a private s3 from shadow-cljs with something like https://github.com/s3-wagon-private/s3-wagon-private?
re-frame-10x
doesn't work after moving to lein. Is that a known problem? The required namespace "day8.re-frame-10x.preload" is not available.
@mynomoto how are you adding s3 wagon to your build?
I don't know if s3-wagon-private would work with Shadow cause it would need to be loading a JVM to download the dependencies
as it hooks into Aether
How does Shadow download dependencies? Just making the HTTP calls itself?