I am using react Material UI, and I received the following error.
"Module not found: Can't resolve '@material-ui/icons/Lock'"
import LockIcon from '@material-ui/icons/Lock';
How can I fix this?
I am using react Material UI, and I received the following error.
"Module not found: Can't resolve '@material-ui/icons/Lock'"
import LockIcon from '@material-ui/icons/Lock';
How can I fix this?
MUI have since separated their icons from core into a separate node_module called @material-ui/icons.
Here's a good example on how to setup your MUI Icons with React: https://mechanicalrock.github.io/2021/04/27/fed-talk-s01e01-getting-started#keyboard-getting-started-with-material-ui
Here's an alternative is you cant install the node modules:
You can find more info about all the icons here