New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@material-ui/core incompatible with next.js #15505
Comments
Is this issue present using the 4.0.0 alphas? |
@jaycenhorton It shouldn't be an issue with Material-UI the list context has a default value: |
It seems to be a regression on Next.js side. next 8.0.4 works, next 8.1.0 doesn't. |
Let's track it in vercel/next.js#7167. |
Please, I am confused as to how to solve this problem "TypeError: Cannot read property 'dense' of undefined" in my code. I did not get how you guys solved it. It still occured in my code this morning |
@samuelkurdz I believe you need to revert back to v8.0.4: https://github.com/zeit/next.js/releases/tag/v8.0.4. |
When using next.js versions >= 8.0.5-canary.11 I am not able to use certain components of
@material-ui/core@3.9.3
. If I downgrade to@material-ui/core@3.3.0
there is no issue.On the flip side, I can use next.js versions <= 8.0.5-canary.10 with
@material-ui/core@3.9.3
(and proabably any other version)The issue appears to only happen when I import and use a
ListItem
, though It's possible others have the same issue.this seems to be the same issue but was closed
Additional notes:
The changes that happened between next@8.0.5-canary.10 and 11 don't look like they could possibly be causing this issue. ( Revert weird firefox workaround vercel/next.js#6896, Add checking of react versions vercel/next.js#6892 )
everything works in development, it only breaks in production
Expected Behavior 🤔
I should be able to build and start an app using a
<ListItem>
import and use the latest versions of next.js when using material-uiCurrent Behavior 😯
I get a 500 error with the following output in the console:
Steps to Reproduce 🕹
Link: https://codesandbox.io/s/nrnx4p6q4p
repo: https://github.com/jaycenhorton/next-mui-errors
Context 🔦
Your Environment 🌎
The text was updated successfully, but these errors were encountered: