You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unable to actually use any MUI features due to a runtime error where an object is called like a function.
This appears to happen because one of MUIs dependencies (@emotion) is trying to default export the function createCache but somewhere in the process this is messed up and we get createCache = {default: f} rather than the expected createCache = f
I think the @mui and @emotion code looks good, so I am suspecting snowpack or some weird shenanigans here as the culprit. Hoping someone will be more familiar and able to at least give 👍 / 👎 on this theory.
Steps to reproduce
Clone my minimal example (below) then yarn install && yarn start
You should see the same error...
Quick checklist
What package manager are you using?
yarn
What operating system are you using?
macOS
Describe the bug
Possibly related to: #3926
Using all the latest:
I am unable to actually use any MUI features due to a runtime error where an object is called like a function.
This appears to happen because one of MUIs dependencies (@emotion) is trying to default export the function
createCache
but somewhere in the process this is messed up and we getcreateCache = {default: f}
rather than the expectedcreateCache = f
I think the @mui and @emotion code looks good, so I am suspecting snowpack or some weird shenanigans here as the culprit. Hoping someone will be more familiar and able to at least give 👍 / 👎 on this theory.
Steps to reproduce
Clone my minimal example (below) then
yarn install && yarn start
You should see the same error...
Link to minimal reproducible example (optional)
https://github.com/oclyke-zucchini/snowpack-mui-emotion-createCache-not-function
The text was updated successfully, but these errors were encountered: