Есть веб-приложение с фронтендом на React.
$ ls
build node_modules package.json package-lock.json public README.txt src
$ cat package.json
{
"name": "fornt",
"version": "0.1.0",
"private": true,
"dependencies": {
"@khanacademy/react-multi-select": "^0.3.3",
"@material-ui/core": "4.0.0",
"@material-ui/icons": "4.0.0",
"axios": "0.18.0",
"classnames": "2.2.6",
"es6-promise": "4.2.6",
"moment": "2.24.0",
"re-resizable": "*",
"react": "^16.8.6",
"react-cookie": "4.0.0",
"react-dom": "^16.8.6",
"react-redux": "7.0.3",
"react-router-dom": "5.0.0",
"react-scripts": "3.0.1",
"redux": "4.0.1",
"redux-thunk": "2.3.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"proxy": "http://127.0.0.1:5000"
}
src/components/Profile.js
import AddIcon from '@material-ui/icons/AddBox'
import EditIcon from '@material-ui/icons/Edit';
// работают
import PasswordIcon from '@material-ui/icons/Password';
// валится с ошибкой ниже
$ npm start
Failed to compile.
./src/components/Profile.js
Module not found: Can't resolve '@material-ui/icons/Password' in '<путь>/src/components'