material-ui-search-bar
material-ui-search-bar copied to clipboard
It is not working with latest version of @mui-material
Provide a solution to work with v5.xxx
+1. Please help!!
Module not found: Can't resolve '@material-ui/icons/Clear'
vs what v5 has
@mui/icons-material/Clear
Hi, i think changing the SearchBar.js content changing will solve the issue. Like below. line 18-line 20. to the newest mui content
But somehow, i get the same error... I would like your help to solve this issue.
var _Clear = _interopRequireDefault(require('@mui/icons-material/Clear'));
var _Search = _interopRequireDefault(require('@mui/icons-material/Search'));
I had to make this search-bar compatible with react-18 and mui-v5 so I updated.
https://gist.github.com/hongz1/8368c79690b8bdfe5a86f686e3257134