-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[icons] Dev server breaks when icon is imported from @mui/icons-material/Icon
#43821
Comments
Relates to #43586 |
A workaround is given by #43586 (comment). |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note We value your feedback @marvinruder! How was your experience with our support team? |
@mui/icons-material/Icon
@mui/icons-material/Icon
Steps to reproduce
material-icons
of https://github.com/marvinruder/material-ui-pigment-css-vite-tsCurrent behavior
An empty page is shown with the following stack trace in the console:
Expected behavior
The page is rendered normally.
Context
This issue does not occur when using
vite preview
(hosting static resources generated byvite build
) or when importing icons from@mui/icons-material
, likeHowever, the “safest [option] for bundle size” as advertised here is importing from
@mui/icons-material/Icon
, causing this issue.Your environment
npx @mui/envinfo
Search keywords: icons
Search keywords:
The text was updated successfully, but these errors were encountered: