Can't resolve '@mui/material/generateUtilityClass'
See original GitHub issueUntill now everything worked well. Today I updated packages and I got this error: ./node_modules/@mui/lab/Masonry/masonryClasses.js:1:0 Module not found: Can’t resolve ‘@mui/material/generateUtilityClass’
I’m using NextJS framework. This is my code:
import Masonry from '@mui/lab/Masonry';
// ...
<Masonry columns={{ xs: 1, sm: 2, md: 4 }} spacing={2}>
{[...Array(31)].map((item: null, i: number) => (
<img src={`/galeria/realizacie/${i}.jpg`} alt={String(i)} draggable={false} />
))}
</Masonry>
// ...
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:10
Top Results From Across the Web
Module not found: Can't resolve '@mui/material/utils' : (v5 ...
Try this command npm install @mui/material @emotion/react @emotion/styled.
Read more >Module not found: Can't resolve '@mui/material' | bobbyhadz
To solve the error "Module not found: Error: Can't resolve '@mui/material'", make sure to install the package by opening your terminal in your...
Read more >module not found: error: can't resolve '@mui/material/box'
To fix this error, you must install the package '@mui/material ' before using it. Open the terminal and run the following command to...
Read more >@mui/material - npm
React components that implement Google's Material Design.. Latest version: 5.11.2, last published: 2 days ago. Start using @mui/material in ...
Read more >Installation - Material UI - MUI
Install Material UI, the world's most popular React UI framework.
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 Free
Top 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

Upgrading @mui/material from 5.10.10 to 5.10.11 fixed the problem for me
Upgrading @mui/material to the lastest version works