Skip to content
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

[any component] Module not found: Can't resolve '@emotion/styled #44241

Closed
kelsonbatista opened this issue Oct 28, 2024 · 4 comments
Closed

[any component] Module not found: Can't resolve '@emotion/styled #44241

kelsonbatista opened this issue Oct 28, 2024 · 4 comments
Labels
nextjs support: question Community support but can be turned into an improvement

Comments

@kelsonbatista
Copy link

kelsonbatista commented Oct 28, 2024

I've installed Material UI over Next JS latest and 14.2.16 versions but still not working. I searched for compatible versions on documentation and also through Google but I can't find such information.

I'm calling Button component from @mui/joy and I'm getting the error "Module not found: Can't resolve '@emotion/styled'"
But the module is installed. Please check attached files for detailed information. I appreciate any help.

error_styled
packages

Search keywords:

Search keywords:

@github-actions github-actions bot added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Oct 28, 2024
@michelengelen michelengelen transferred this issue from mui/mui-x Oct 28, 2024
@mj12albert
Copy link
Member

@kelsonbatista could you share a link to your sandbox?

@mj12albert mj12albert added status: waiting for author Issue with insufficient information nextjs and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 29, 2024
@kelsonbatista
Copy link
Author

@kelsonbatista could you share a link to your sandbox?

I'm working on my localhost. I just want to know what mui version is compatible to NextJs, can't find this information.

@github-actions github-actions bot added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for author Issue with insufficient information labels Oct 29, 2024
@mj12albert
Copy link
Member

The latest version of Material UI 6.1.5 should work with the latest 14.x version of Next.js, you can use this example repo as a reference: https://github.com/mui/material-ui/tree/master/examples/material-ui-nextjs-ts

For Next.js 15.x see #44203

@mj12albert mj12albert added support: question Community support but can be turned into an improvement and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 29, 2024
Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@kelsonbatista How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nextjs support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

2 participants