Issue with renaming a file and a custom decorator not showing up in the editor.

6 replies
Last updated: Jan 10, 2024
What am I doing wrong?
Jan 8, 2024, 11:43 PM
It looks like you just need to rename the file
since the file contains JSX code
Jan 9, 2024, 12:48 AM
Oh geez! I should have realized that. Thank you.
Jan 9, 2024, 2:31 PM
user J
I am getting this error now. Why is that happening?
Jan 9, 2024, 4:52 PM
In addition, my custom decorator for "sup" is not showing up in the editor, hence why I am getting that error.
Jan 9, 2024, 4:55 PM
I'm not sure about that one sorry πŸ˜•The decorator must have appeared initially in order for you to enter the superscript text? Did you change the model again since entering the text? And you're definitely in the same environment? E.g. you didn't enter the text in your locally running studio and then open the deployed studio without deploying the code for the decorator?
Jan 10, 2024, 12:35 AM
I figured it out.
Jan 10, 2024, 12:35 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?