question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Material ui styling breaks on next 9.5.2

See original GitHub issue

Bug 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

image

Previously, looks like this:

image

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:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
robertwt7commented, Aug 21, 2020

Is anyone else having the same issue when using variant outlined?

1reaction
oliviertassinaricommented, Aug 27, 2020

@robertwt7 Did you follow the Next.js example in the Material-UI repository? It looks like you didn’t configure _document.js

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found