Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Material ui breaks on refresh in Next js

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?

applied-styles

breaks-on-refresh

like image 243
walker1 Avatar asked Jun 05 '20 14:06

walker1


1 Answers

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?

like image 101
KorHosik Avatar answered Sep 22 '22 00:09

KorHosik