-
Notifications
You must be signed in to change notification settings - Fork 27.6k
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
Unstyled UI shows up on the first load. CSS is not loading properly in production build. #36915
Comments
This should probably be reported in https://github.com/mui/material-ui first. If they agree that this is a Next.js bug, we can have a further look. 👍 |
UPDATE: I found you opened this already, and there was this response: mui/material-ui#32770 (comment) I tested with our https://github.com/vercel/next.js/releases/tag/v12.1.7-canary.4 and up should work correctly. Related PR: #36792 And related issue already reporting this: #36675 (comment) |
Thanks @balazsorban44 for the quick response! |
Hi, I upgraded NextJS from v12.0.10 to v12.1.7-canary.39 and I'm still seeing this issue, the style from the theme won't load on the page's first render, anyone can help? |
@balazsorban44 , @vascojm82 in the issues of this package either read they say the problem is next Now, decided to upgrade to the latest canary In my case problem with related package is there Can someone help create an issue - I don't even understand what to write? @huozhi, @fmmoret, @ijjk, @davidbarker, @kwonoj, @seanparmelee, @timneutkens |
@7iomka please refrain from mentioning Next.js team members who haven't been part of the discussion. You can create a new issue with a full reproduction, following the steps described in the bug report template, and see how we triage issues here. |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Unstyled UI shows up on the first load when using material ui examples nextjs-with-typescript or nextjs stackblitz
This also happens within my own project with the latest packages versions.
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
Unstyled UI shows up on the first load. CSS is not loading properly in production build.
Expected Behavior
Ui is loaded with styles on the first load.
To Reproduce
The text was updated successfully, but these errors were encountered: