Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

Resolving module import error for sanity-plugin-markdown in Next.js

2 replies
Last updated: Nov 4, 2024
Hello everyone šŸ‘‹,
i have install sanity-plugin-markdown in my nextjs 15 app but when am importing it in my sanity.config.ts i get the error message


Cannot find module 'sanity-plugin-markdown' or its corresponding type declarations.

Nov 3, 2024, 5:27 PM
Hi
user U
šŸ‘‹
Have you installed the s`sanity-plugin-markdown` and
easymde@2
(peer dependency) in yourthe same directory as the rest of your sanity files?
Nov 4, 2024, 9:36 AM
Thanks it solve now i was in a different folder in my terminal šŸ™‚
Nov 4, 2024, 9:45 AM

Sanityā€“ build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?