This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-24
Channels
- # announcements (26)
- # babashka (1)
- # beginners (174)
- # calva (1)
- # cider (10)
- # clj-kondo (27)
- # cljtogether (1)
- # clojars (8)
- # clojure (57)
- # clojure-australia (1)
- # clojure-czech (2)
- # clojure-europe (40)
- # clojure-germany (15)
- # clojure-nl (3)
- # clojure-serbia (6)
- # clojure-uk (11)
- # clojurescript (30)
- # conjure (2)
- # cursive (8)
- # datalog (16)
- # datomic (29)
- # emacs (33)
- # etaoin (1)
- # events (2)
- # fulcro (81)
- # funcool (2)
- # integrant (3)
- # jobs (2)
- # joker (2)
- # kaocha (15)
- # lsp (19)
- # malli (8)
- # membrane (1)
- # off-topic (57)
- # pathom (2)
- # reitit (10)
- # releases (1)
- # remote-jobs (2)
- # reveal (5)
- # shadow-cljs (14)
- # sql (11)
- # tools-deps (8)
- # vim (3)
I'm trying to use the material-ui/[email protected]
which also uses @emotion/styled
and @emotion/react
and running into some issues with the :require/:refer
:
core.js:1662 TypeError: module.keyframes is not a function
at Object.shadow$provide.module$node_modules$$material_ui$core$node$ButtonBase$TouchRipple (TouchRipple.js:58)
at shadow.js.jsRequire (js.js:66)
at Object.shadow$provide.module$node_modules$$material_ui$core$node$ButtonBase$ButtonBase (ButtonBase.js:37)
at shadow.js.jsRequire (js.js:66)
at Object.shadow$provide.module$node_modules$$material_ui$core$node$ButtonBase$index (index.js:34)
at shadow.js.jsRequire (js.js:66)
at Object.shadow$provide.module$node_modules$$material_ui$core$node$AccordionSummary$AccordionSummary (AccordionSummary.js:31)
at shadow.js.jsRequire (js.js:66)
at Object.shadow$provide.module$node_modules$$material_ui$core$node$AccordionSummary$index (index.js:27)
at shadow.js.jsRequire (js.js:66)
I'm using shadow-cljs 2.11.20
Which seems to be the :refer
of https://github.com/mui-org/material-ui/blob/next/packages/material-ui/src/index.js#L20in general when using @next
packages you are on your own. they are unreleased preview alpha packages that very likely contain some breaking changes that might not match "current" documentation or so
don't know why you linked the above but this is the call that seems to fail https://github.com/mui-org/material-ui/blob/next/packages/material-ui/src/ButtonBase/TouchRipple.js#L14
so maybe you don't ahve the correct version of this package @material-ui/styled-engine
Alright, that makes sense. Thanks for having a look as always, seeing if I can find that magical npm packages combo.. 🙂
I wonder what makes running shadow-cljs significantly faster when :deps true is not enabled. Isn’t shadowcljs itself a jvm library that ultimately leverages java regardless :deps is enabled or not?
you can switch the thheller/shadow-cljs
dependecy to thheller/shadow-cljs$aot
in deps.edn I think
there's a way to invoke lein's with-profile
with shadow-cljs, like when I use aliases with -A
using deps.edn?