Fork me on GitHub
#shadow-cljs
<
2021-03-24
>
bbss09:03:38

I'm trying to use the material-ui/core@next 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#L20

thheller09:03:01

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

thheller09:03:12

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

thheller09:03:02

so maybe you don't ahve the correct version of this package @material-ui/styled-engine

bbss10:03:46

Alright, that makes sense. Thanks for having a look as always, seeing if I can find that magical npm packages combo.. 🙂

pinkfrog15:03:30

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?

thheller15:03:08

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

thheller15:03:30

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

thheller15:03:52

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

pinkfrog16:03:12

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

thheller16:03:15

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?