Fork me on GitHub

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


in 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


it is also often much more likely to run into version conflicts


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?


@i running or starting? running should not be much of a difference


startup speed is faster because shadow-cljs.edn uses the aot artifact by default


you can switch the thheller/shadow-cljs dependecy to thheller/shadow-cljs$aot in deps.edn I think


so in theory, if I switch to the $aot version, there should not be a different


depends on what you are doing. startup speed should be similar then yes

Ian Fernandez23:03:33

there's a way to invoke lein's with-profile with shadow-cljs, like when I use aliases with -A using deps.edn?