'Typography Material UI not found

The Material UI library doesn't respond in case when typography is separately installed in the project libraries.
The project isn't compiling and giving this error

./src/App.js

Module not found: Can't resolve 'material-ui/Typography' in 'C:\Users\Sara Durrani\react\screenstask\src'



Solution 1:[1]

Just had the same problem. Apparently now you have to import it from core:

import Typography from '@material-ui/core/Typography'

Solution 2:[2]

You will have import Typography like this:

import Typography from '@mui/material/Typography';

Sources

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

Source: Stack Overflow

Solution Source
Solution 1 tonysepia
Solution 2 JustAG33K