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 the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?