After upgrading from @mui/material 5.5.0 to 5.6.4 my vite react-ts app doesn't run, throwing an error: styled_default is not a function by Popper.js, the popper component is being used by an autocomplete component
The theme provider is wrapping entire app
Autocomplete is hitting an api to populate options, but a fresh vite project with mui doesn't seem to have this issue?
Any help / pointers in the right direction would be appreciated
running react 17.0.2 vite 2.8.0 mui/material 5.6.4
For me worked by change the ThemeProvider export path
after
import { ThemeProvider } from '@mui/material/styles';
previously
import { ThemeProvider } from '@mui/material';