'Material-UI V5 makeStyles

I have tried to use makeStyles in MUI V5.

I imported it like this - import { makeStyles } from "@mui/styles" ;

But it is showing this error : export 'default' (imported as 'jssPreset') was not found in '../jssPreset' (module has no exports)

I have checked the MUI document, but couldn't find any information to this issue. Not sure what to do next.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source