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

Module not found: Can't resolve '@emotion/styled' #45501

Open
MaroAly opened this issue Mar 6, 2025 · 2 comments
Open

Module not found: Can't resolve '@emotion/styled' #45501

MaroAly opened this issue Mar 6, 2025 · 2 comments
Assignees
Labels
package: system Specific to @mui/system status: waiting for author Issue with insufficient information

Comments

@MaroAly
Copy link

MaroAly commented Mar 6, 2025

Steps to reproduce

Steps:

  1. Open this link to live example: (required)

Current behavior

./node_modules/@mui/styled-engine/index.js (9:1)
Module not found: Can't resolve '@emotion/styled'
7 | /
8 | /
eslint-disable no-underscore-dangle */

9 | import emStyled from '@emotion/styled';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 | import { serializeStyles as emSerializeStyles } from '@emotion/serialize';
11 | export default function styled(tag, options) {
12 | const stylesFactory = emStyled(tag, options);

Expected behavior

@emotion/styled be imported

Context

installed icons via npm to use the visibility icon by running this command:
npm install @mui/icons-material

Your environment

npx @mui/envinfo
  System:
    OS: Windows 11 10.0.26100
  Binaries:
    Node: 23.8.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.9.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: Not Found
  Browsers:
    Chrome: Not Found
    Edge: Chromium (132.0.2957.140)
  npmPackages:
    @mui/core-downloads-tracker:  6.4.7
    @mui/icons-material: ^6.4.7 => 6.4.7
    @mui/material:  6.4.7
    @mui/private-theming:  6.4.6
    @mui/styled-engine:  6.4.6
    @mui/system:  6.4.7
    @mui/types:  7.2.21
    @mui/utils:  6.4.6
    @types/react:  19.0.10
    react: ^19.0.0 => 19.0.0
    react-dom: ^19.0.0 => 19.0.0

Search keywords: Module @emotion/styled

@MaroAly MaroAly added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Mar 6, 2025
@zannager zannager added the package: system Specific to @mui/system label Mar 7, 2025
@brijeshb42
Copy link
Contributor

Could you post the link to the demo ?

@brijeshb42 brijeshb42 added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 7, 2025
@mnajdova
Copy link
Member

mnajdova commented Mar 7, 2025

Emotion is required for the @mui/material and @mui/icons-material at this moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: system Specific to @mui/system status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

4 participants