For those who are following through the course, You might encounter this issue in lesson 6

This is probably due to a typing issue caused by the latest version of remark-html. I was able to fix mine by downgrading to v14.0.0
Refer to this link below for additional info:
vercel/next.js#52369