timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
8.83k stars 2.05k forks source link

Cannot upgrade remark-gfm and related dependencies #736

Closed timlrx closed 6 months ago

timlrx commented 1 year ago

Describe the bug When upgrading remark-gfm to v4, the following error is thrown:

TypeError: Cannot read properties of undefined (reading 'inTable')

Additional context The recent update of remark / rehype along with the typings cause quite a bit of breaking changes. Contentlayer needs to sync with the latest types before newer remark / rehype packages can be used. See https://github.com/contentlayerdev/contentlayer/issues/558

timlrx commented 6 months ago

Updated dependencies with contentlayer2