I have tried adding the babelrc settings in the root directory as suggested by some people but it didn't work. Material ui always seems to break on refresh in next js. Is there a configuration setup I have to do?
Asked
Active
Viewed 2,751 times
1 Answers
8
This is probably because your server does not render your styles. Did you try to inject them like the official Mui repo suggests in this example?

KorHosik
- 1,225
- 4
- 14
- 24
-
Here is an updated link to the MUI repo, as the one in this answer is now broken: https://github.com/mui/material-ui/tree/master/examples/material-next. – AnnieP Jul 17 '23 at 18:45