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.

Can't resolve '@mui/material/generateUtilityClass'

See original GitHub issue

Untill 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:closed
  • Created a year ago
  • Reactions:2
  • Comments:10

github_iconTop GitHub Comments

10reactions
Tracer1337commented, Oct 28, 2022

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

4reactions
maima-onlinecommented, Nov 2, 2022

Upgrading @mui/material to the lastest version works

Read more comments on GitHub >

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

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