-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
No styles at all in next SSR with react 18 and next 12.1.6 #82
Comments
The demo in https://github.com/garronej/tss-react/tree/main/src/test/apps/ssr has the same problem (if i update its dependencies so it runs on react 18) |
Looks like it's already reported in next vercel/next.js#36675 - sorry only found the other bug after submitting this one. |
@bdew Thank you very much for pointing this out. The silly reason why I considered Next SSR fixed is because I updated the dependency on the wrong demo project. Thanks for digging out the issue on Next's repo! I have notifier @mui that Next SSR is still broken Since the problem is not directly related to Thanks for the detailed report, Best regards, |
Sorry to butt in on a subject I don't really understand, but is this related to the same problem as mentioned here? (and which jss has probably fixed with this) |
Hi @AntonOfTheWoods, thanks for your input, As soon as a solution is found you can rest assured that I will update Thanks for reaching out, |
Thanks @garronej . Actually I am (was!) just using My understanding is that in dev mode they are running something twice, which means several css-in-jss solutions have issues. Is this a different issue, or the same underlying one? |
@AntonOfTheWoods, |
Actually @garronej it looks like I may have made a false accusation there. Adding |
@AntonOfTheWoods Thank you very much for taking the time to give feedback. Much appreciated! |
Working with Next.js v12.1.7-canary.4 🥳 |
I don't know if it's related to whatever was fixed in #78 but after this update I'm not getting almost any styles (neither MUI default nor useStyles) in SSR.
The only styles coming from SSR are those 2 small snippets
After hydration it fixes itself and looks correct. Also doesn't seem to happen with react 17.
Example repo: https://github.com/bdew/sqp
The text was updated successfully, but these errors were encountered: