Sanity V3 Embedding System don't load styles #3494
Rychillie
started this conversation in
Sanity Studio Feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Earlier today I opened an Issue regarding about when use the new Sanity v3 embedding system with
Sanity Plugin Markdown V3
the page crashes and it is not possible to run the Studio because Sanity markdown plugin is unable to find thereact-mde
CSS and apply it.Error:
However, I found that when I remove the css imports from the Markdown plugin module and add a call to my
_app.tsx
it is able to access Studio normally.References:
Removing imports on node_modules:
~node_modules/sanity-plugin-markdown/lib/index.js
file:// require("react-mde/lib/styles/css/react-mde-all.css");
~node_modules/sanity-plugin-markdown/lib/index.modern.js
file:// import "react-mde/lib/styles/css/react-mde-all.css";
Add imports to css style:
./pages/_app.tsx
file:My Studio page:
./pages/studio/[[...index]].tsx
file:My doubt/suggestion, does anyone know how we can implement this in the module?
I thought primarily of doing a PR with the removal request and adding a description in the README file explaining how to use it... But I don't find this productive at all, so I came after hours of research asking for help on how can we implement this?
I'm sure that for many users like me, this will already be a stepping stone to start using V3 and creating content with it!
Beta Was this translation helpful? Give feedback.
All reactions