Error occurred prerendering page "/help". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.
here's my page code where this threw. im using next 14.
import { Box, Container, Typography } from '@mui/material';
const Page = () => {
return (
<Container maxWidth="md" sx={{
'& p, svg': { verticalAlign: 'middle', display: 'inline-block' },
'& p': { mb: '16px' }
}}>
<Box component="img" sx={{ width: '50%', mb: '32px' }} src={`/images/about-drawing.jpg`} />
<Typography variant="body1">
foo
</Typography>
</Container>
);
};
export default Page;