You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works on codesandbox but if I download the sandbox and install locally I get module not found errors when importing icons.
I'm having this same issue with a large project using mui v5 as well. it's can't find the icon imports.
Even if I clone this project example I am getting the same error importing any icon like import AccountCircleOutlinedIcon from "@mui/icons-material/AccountCircleOutlined";
Steps:
Go to /about page in Codesandbox
Download sandbox, run locally, and I get module not found errors when importing icon on /about page
Current behavior 😯
Locally, I am getting errors like Module not found: Can't resolve '@mui/icons-material/AccountCircleOutlined' when trying to import icons.
Expected behavior 🤔
Should be able to import without any issues.
Context 🔦
Just trying to import icons. Could this be an issue with swc vs webpack in Next.js? Any ideas what could cause this if it is a local issue? It was working fine last week.
So, I opened this example in the CodeSandbox, downloaded the sandbox and ran it locally but I am not getting the error when I imported import AccountCircleOutlinedIcon from '@mui/icons-material/AccountCircleOutlined'; in the /about page.
Could you try it again with the latest icons-material version?
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example:
https://codesandbox.io/sandbox/mui-page-layout-w8rp6q
It works on codesandbox but if I download the sandbox and install locally I get
module not found
errors when importing icons.I'm having this same issue with a large project using mui v5 as well. it's can't find the icon imports.
Even if I clone this project example I am getting the same error importing any icon like
import AccountCircleOutlinedIcon from "@mui/icons-material/AccountCircleOutlined";
Steps:
/about
page in Codesandboxmodule not found
errors when importing icon on/about
pageCurrent behavior 😯
Locally, I am getting errors like
Module not found: Can't resolve '@mui/icons-material/AccountCircleOutlined'
when trying to import icons.Expected behavior 🤔
Should be able to import without any issues.
Context 🔦
Just trying to import icons. Could this be an issue with
swc
vswebpack
in Next.js? Any ideas what could cause this if it is a local issue? It was working fine last week.Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: