Closed
Description
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Summary 💡
Material UI v5 doesn't support Next.js app directory. Even though the error comes from @emotion\react
and not Material UI itself, I think this should be tracked here as well.
The "primary" error (there might be other problems once the Emotion issue is fixed) is:
TypeError: React.createContext is not a function
(sc_server)\node_modules@emotion\react\dist\emotion-element-b63ca7c6.cjs.dev.js (20:47)
Related Emotion issue: emotion-js/emotion#2928
Examples 🌈
I've created a minimal (failing) example using create-next-app
: https://github.com/MidnightDesign/nextjs13-material-ui
Motivation 🔦
No response