This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-08
Channels
- # announcements (10)
- # babashka (4)
- # beginners (98)
- # cider (47)
- # clara (6)
- # clj-kondo (16)
- # clojure (54)
- # clojure-australia (3)
- # clojure-berlin (3)
- # clojure-czech (2)
- # clojure-europe (77)
- # clojure-nl (4)
- # clojure-uk (12)
- # clojuredesign-podcast (6)
- # clojurescript (10)
- # conjure (56)
- # cursive (3)
- # data-science (6)
- # datascript (8)
- # datomic (213)
- # depstar (5)
- # events (1)
- # figwheel-main (2)
- # fulcro (23)
- # graalvm (2)
- # jobs (3)
- # london-clojurians (1)
- # malli (30)
- # meander (15)
- # midje (1)
- # mount (5)
- # off-topic (18)
- # re-frame (4)
- # reitit (15)
- # remote-jobs (1)
- # shadow-cljs (23)
- # spacemacs (10)
- # specter (1)
- # tools-deps (88)
- # vim (16)
- # xtdb (1)
Hi, not sure how to import material ui icons, I’ve tried both
["@material-ui/icons/InboxIcon" :refer [InboxIcon]]
and
["@material-ui/icons" :refer [InboxIcon]]
But none of them work, appreciate any help, cheersIf you're using shadow-cljs, it should be ["@material-ui/icons/InboxIcon" :default InboxIcon]
.
thanks, yes I use shadow-cljs, strange I still got
[:app] Build failure:
The required JS dependency "@material-ui/icons/InboxIcon" is not available, it was required by "iam_frontend/core.cljs".
I already did “npm install @material-ui/icons”…yes it does
Try stopping shadow-cljs, removing all build artifacts and the .shadow-cljs
directory, and launching shadow-cljs again.
all good, it should be “@material-ui/icons/Inbox” instead of “InboxIcon”
many thanks again