After reviewing the material ui documentation located at https://material-ui.com/components/typography/
I attempted to utilize the Typography component in the following manner:
<Typography variant="h1" component="h1">
Hello World
</Typography>
However, after updating to nextjs 9, I encountered a typing error:
Type 'string' is not assignable to type 'ElementType<HTMLAttributes<HTMLElement>>'
In an attempt to resolve this issue, I updated various typing dependencies to no avail.
Upon receiving advice from Shanon, the error message now reads:
48:36 Type '"h1"' is not assignable to type 'ElementType<HTMLAttributes<HTMLElement>>'.
46 | </Grid>
47 | <Grid item>
> 48 | <Typography variant="h1" component={'h1' as const}>
| ^
49 | Hello World
50 | </Typography>
51 | </Grid>
This continues to be a hindrance for me.
Given that my initial implementation mirrors the official documentation exactly, I am uncertain how to proceed with resolving this issue.