basir / next-amazona

next-amazona.vercel.app
289 stars 226 forks source link

Styled component error #14

Open rahman-jn opened 2 years ago

rahman-jn commented 2 years ago

I got this error when using styled component and the css styles of the navbar has been broken:

next-dev.js?3515:32 Warning: Prop className did not match. Server: "MuiTypography-root MuiTypography-body1 makeStyles-brand-98 css-ahj2mt-MuiTypography-root" Client: "MuiTypography-root MuiTypography-body1 makeStyles-brand-2 css-ahj2mt-MuiTypography-root"

eminbasbayan commented 2 years ago

I got this error when using styled component and the css styles of the navbar has been broken:

next-dev.js?3515:32 Warning: Prop className did not match. Server: "MuiTypography-root MuiTypography-body1 makeStyles-brand-98 css-ahj2mt-MuiTypography-root" Client: "MuiTypography-root MuiTypography-body1 makeStyles-brand-2 css-ahj2mt-MuiTypography-root"

image

I got a similar error too. I guess it has to do with the up-to-dateness of the _document page. were you able to solve the problem?