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”…Does your directory structure looks in any way similar?
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
Ah, right. HPH