shadcn / next-contentlayer

A template with Next.js 13 app dir, Contentlayer, Tailwind CSS and dark mode.
https://next-contentlayer.vercel.app
695 stars 94 forks source link

fix: nextjs14 Error using next/image in mdx component #24

Open tudoujunha opened 10 months ago

tudoujunha commented 10 months ago

Fix next 14.04:

Unhandled Runtime Error Error: Cannot access .propTypes on the server. You cannot dot into a client module from a server component. You can only pass the imported name through.

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-contentlayer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 11, 2024 5:58pm
RafalKostecki commented 5 months ago

@shadcn @flemzord Why hasn't this package been merged? Without it, it's impossible to use the package with nextjs 14.

LuchoTurtle commented 4 months ago

Agreed. It's a simple merge and would help tons of people :)