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

[icon] Import issue, some icons affected #43819

Closed
lcfr-dev opened this issue Sep 19, 2024 · 4 comments
Closed

[icon] Import issue, some icons affected #43819

lcfr-dev opened this issue Sep 19, 2024 · 4 comments
Assignees
Labels
package: icons Specific to @mui/icons support: question Community support but can be turned into an improvement

Comments

@lcfr-dev
Copy link

lcfr-dev commented Sep 19, 2024

Steps to reproduce

No response

Current behavior

Hi, the issue come up only with the version 6.1.0 but was not present in the preview version 6.0.2. Even the version 6.1.1 (last release) not solve the problem
I had the issue the NavigateBefore and NavigateNext but not with DoNotDisturb
The returned error is Resolving to directories is not possible with the exports field (request was ./)

I use the following code in same file

import { DoNotDisturb } from '@mui/icons-material/';                 // working
import { NavigateNext } from '@mui/icons-material/';                 // not working
import NavigateBefore from '@mui/icons-material/NavigateBefore';     // not working

Thanks a lot for your awesome work

Expected behavior

Context

No response

Your environment

npx @mui/envinfo
  
 System:
    OS: Linux 6.11 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
  Binaries:
    Node: 22.8.0 - ~/.nvm/versions/node/v22.8.0/bin/node
    npm: 10.8.3 - ~/.nvm/versions/node/v22.8.0/bin/npm
    pnpm: 9.10.0 - ~/.nvm/versions/node/v22.8.0/bin/pnpm
  Browsers:
    Chrome: 129.0.6668.58
  npmPackages:
    @emotion/react: ^11.13.3 => 11.13.3 
    @emotion/styled: ^11.13.0 => 11.13.0 
    @mui/base:  5.0.0-beta.40 
    @mui/core-downloads-tracker:  6.1.1 
    @mui/icons-material: ^6.1.1 => 6.1.1 
    @mui/joy: ^5.0.0-beta.48 => 5.0.0-beta.48 
    @mui/material: ^6.1.1 => 6.1.1 
    @mui/private-theming:  6.1.1 
    @mui/styled-engine:  6.1.1 
    @mui/system:  6.1.1 
    @mui/types:  7.2.17 
    @mui/utils:  6.1.1 
    @types/react:  18.3.5 
    react: ^18.3.1 => 18.3.1 
    react-dom: ^18.3.1 => 18.3.1 
    typescript:  4.9.5 

Search keywords: icons

@lcfr-dev lcfr-dev added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 19, 2024
@oliviertassinari oliviertassinari added the package: icons Specific to @mui/icons label Sep 19, 2024
@oliviertassinari
Copy link
Member

oliviertassinari commented Sep 19, 2024

@Janpot
Copy link
Member

Janpot commented Sep 20, 2024

@lcfr-dev You can remove the trailing slash from '@mui/icons-material/', this is not supported (*). If you still experience the issue after that, please provide us with a real reproduction (codesandbox or github repo) so that we can investigate.

(*) Verified that we're nowhere advertising this in our docs. Should it be explicitly documented? Feels a bit redundant to me.

@Janpot Janpot 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 Sep 20, 2024
@lcfr-dev
Copy link
Author

**> @lcfr-dev You can remove the trailing slash from '@mui/icons-material/', this is not supported (*). If you still experience the issue after that, please provide us with a real reproduction (codesandbox or github repo) so that we can investigate.

(*) Verified that we're nowhere advertising this in our docs. Should it be explicitly documented? Feels a bit redundant to me.

Thanks a lot guys. The issue is solved. I just done a clean install of everything in in the project. Previusly i forget to say that I'm using Vite.

@github-actions github-actions bot removed the status: waiting for author Issue with insufficient information label Sep 27, 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

We value your feedback @lcfr-dev! How was your experience with our support team?
We'd love to hear your thoughts in this brief Support Satisfaction survey. Your insights help us improve!

@oliviertassinari oliviertassinari added the support: question Community support but can be turned into an improvement label Oct 5, 2024
@oliviertassinari oliviertassinari changed the title icon import issue. Some icons affected [icon] Import issue, some icons affected Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: icons Specific to @mui/icons support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

3 participants