I am trying to implement a global alert using the following approach:
However, I get this error:
ERROR in ./src/components/snackbar/Alert.js 5:0-82
Module not found: Error: Can’t resolve ‘@material-ui/lab’ in ‘srccomponentssnackbar’
I use "react": "^18.2.0"
and it seems that there is no @material-ui/lab
installation. How can I solve the problem without downgrading my React version? Any idea?