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?
import Icon from '@material-ui/core/Icon';
then add font material icons to index.html
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With