This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-15
Channels
- # aleph (9)
- # announcements (6)
- # beginners (42)
- # calva (4)
- # cider (9)
- # clara (2)
- # clj-kondo (1)
- # cljdoc (108)
- # cljs-dev (10)
- # clojure (25)
- # clojure-brasil (1)
- # clojure-chicago (1)
- # clojure-europe (4)
- # clojure-italy (42)
- # clojure-nl (14)
- # clojure-uk (66)
- # clojurebridge (3)
- # clojurescript (23)
- # clojutre (2)
- # community-development (1)
- # cursive (2)
- # datomic (4)
- # figwheel-main (21)
- # fulcro (23)
- # jobs-discuss (1)
- # kaocha (1)
- # off-topic (10)
- # pedestal (4)
- # reitit (2)
- # shadow-cljs (41)
- # spacemacs (7)
- # sql (20)
- # xtdb (3)
i use modularized antd and set .babelrc but it seems that the js and css file are not import modularly
@haiyuan.vinurs what is modularized antd?
Would this also require
css related to antd/es/date-picker
?
Is there a way for this in ClojureScript?
Like import 'antd/es/date-picker/style/css';
sorry for late reply, so the best way is that i include the ant-design.min.css in my html file?
Hi all! I have a short question about the usage of shadow-cljs
with electron. Everything works well until now except the usage of the fs
module in the renderer process. From the main process it is no problem to (require '["fs" :as fs])
and get the fs
module.
But from the renderer process, all I get is an empty map: #js {}
while for the modules path
and url
i get the right modules.
I cannot figure out how this happens. Does anyone have an input to this?
@alpox you are probably using the wrong build config. the renderer process should have :js-options {:js-provider :require}
Setting that option for the renderer process sadly led to a whole series of: Uncaught ReferenceError: require is not defined
😞
I don't have an electron config so that should be the default. I have the feeling that I have some tooling problem with CIDER. I hope that it works with that option once I get around it!
Ok I deleted .shadow-cljs
and the errors vanished except that the behavior with the fs
module is still the same with the :js-options {:js-provider :require}
option
I tested now multiple times and the require is not defined
errors always appear with :require
set as js-provider
, the fs
problem occurs with and without
just to be clear though this is a regular electron renderer window? not a normal browser?
ah. see https://stackoverflow.com/questions/44391448/electron-require-is-not-defined