Material ui styling breaks on next 9.5.2
See original GitHub issueBug report
Describe the bug
Previously I have 3 projects on next 9.4.4 that works with the latest MUI styling, now it just breaks
To Reproduce
Install latest material-ui, try to import <TextField variant="outlined" />
, then it breaks
Screenshots
Previously, looks like this:
System information
- OS: Windows, WSL
- Browser (if applies) both chrome and safari
- Version of Next.js: latest, checked in yarn.lock got version 9.5.2
- Version of Node.js: v12.18.1
Additional context
This actually only happens to the outlined
variant of MUI, if i went to the other variants it works just fine.
Can anyone clarify?
Thanks
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Material ui breaks on refresh in Next js - Stack Overflow
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....
Read more >@material-ui/styles | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >Introducing MUI Core v5.0
While MUI is compatible with any styling solution (as long as the styles have more specificity, for example, Tailwind CSS), many developers ...
Read more >styled components not working in prod nextjs - You.com
I'm facing an issue when trying to reload a page after I have changed a material ui next component using a styled component....
Read more >Next.js 11 setup with Material UI Version 5 | Part 2 - YouTube
Next.js 11 setup with Material UI Version 5 | Part 2 - Styled-Components. 7.9K views · 1 year ago ... Styling React Components...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is anyone else having the same issue when using variant outlined?
@robertwt7 Did you follow the Next.js example in the Material-UI repository? It looks like you didn’t configure _document.js