sanity-io / sanity-plugin-markdown

Markdown support in the Sanity Studio
MIT License
51 stars 8 forks source link

Issues when using Next and Sanity Studio #64

Open iamhectorsosa opened 1 year ago

iamhectorsosa commented 1 year ago

Hello, I'm configuring a local Sanity Studio with my Next project. I'm getting this issue. Following the steps as indicated in the README of this repository.

./node_modules/easymde/dist/easymde.min.css
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
Location: node_modules/sanity-plugin-markdown/lib/index.esm.js
pedrobonamin commented 1 year ago

Hello, I'm getting the same issue, have you been able to fix it? Trying to use the plugin in a NextJs embebed editor.

iamhectorsosa commented 1 year ago

@pedrobonamin Nope. I've got nothing so far. I've reached out to the Sanity folks on their Slack channel but they've advised me to contact the plugin creators. Hence, here we are.

pedrobonamin commented 1 year ago

I managed to fix it, following the recommendation from here: https://github.com/sanity-io/sanity-plugin-markdown/issues/27

What I did:


-  Used the plugin from my project instead of the installed one.