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 'material-ui-icons/Menu' Martial Next #10571
Comments
oh this is not part of the core material-ui package: |
For anyone else experiencing this issue: |
We'll probably add a deprecation warning to |
You should update @material-ui.
And restart 'npm start' |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
have any idea about this error |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hi, I get |
i have the same issue just install and for other materials and import like this |
Would be nice to update the official docs to make this a little bit clearer. |
@catonmat The first sentence in the Material Icons page mentions the package name. It's also covered in the Installation docs. Every example that uses icons shows the import, and there's a copyable import on each icon preview: What do suggest we could do to make it clearer? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I was facing an issue, tried to import the icon automatically in vscode, but it was not working. Turned out, I had to import it in a separate way like: So, you see, |
@adisher You can import it as |
Change |
I was experiencing this issue because I was importing incorrectly. I was trying to use import { MenuIcon } from '@material-ui/icons/Menu' But I needed to change it to import MenuIcon from '@material-ui/icons/Menu' |
Does. Not. Help. |
Using VS Code **Failed to Compile @ ./src/Header.js 14:14-50** This is the import instruction: HTML: Dependencies: "@material-ui/core": "^4.11.0", |
It works! |
Yes, I found this package, suggested in another thread, was incorrect for my purpose: "material-ui-icons": "^1.0.0-beta.36", I reinstalled using your approach and found that resolved the problem. Thanks Arpan! |
Use npm and not yarn. I had issues with yarn |
Change to: |
Hi even after installing this also i'm getting same error saying that |
It solved my issue. With yarn not all icons were in node_modules/@material-ui/icons. They start with 'R' letter don't know why. But after using 'npm i' all icons are in place |
This worked for me! thank youuu :)) |
This worked perfect. |
It worked for me thank you so much |
Perfect solution! |
This worked for me: change to Seems there are bugs on the Icon path |
Made it all the way to the bottom to find this! Thanks for the post |
Thankyou this worked! |
The path for an Icon was not correct. If the Module is not found, and you have imported the module, then maybe the path is not correct. Went to node_modules > @material-ui and scrolled until i found the file that I was looking for ie Help.js and used that in the import: import HelpIcon from |
npm install @mui/icons-material |
|
Try to update your import style directly from MaterialUI Icon page |
Hi. I experienced the same problems and I tried unsuccessfully many of the solutions here. After reading this post of StackOverflow, I realized the problem. My version is v4 and I was trying to import it as v5. Even when I reinstalled the material icons as appears in this thread, the version was the same. So, if the solutions here don't work for you, I suggest checking your |
Thanks. This worked for me! 👍 |
After you've installed the packages in some cases you may need to restart the development server by quitting and running |
please install the icons-material like following command line |
Getting the same error. When I tried to install it with the code given above, these error message is shown.
|
This code works for me: |
Module not found: Error: Can't resolve '@material-ui/icons/LockOutlinedIcon' in . |
try: npm install @mui/icons-material This worked for me. |
Did you try to use import { LockOutlined } from "@mui/icons-material"; ? I had the same issue with trying to import icons like import DeleteIcon from "@mui/icons-material/Delete"; but didnt work. (using vite) |
I fix this problem installing the correct library in my case |
this worked for me, thanks! |
import MenuIcon from 'material-ui-icons/Menu';
causes
Used exact code from example: https://github.com/mui-org/material-ui/blob/v1-beta/docs/src/pages/demos/app-bar/ButtonAppBar.js
The text was updated successfully, but these errors were encountered: