renderDefault is not a function #7079
Unanswered
LiFaytheGoblin
asked this question in
Sanity Studio Support
Replies: 3 comments
-
Hi, I came across this issue when looking for answers on something else. Just wondered if you fixed the problem. if not, i suggest typing props as |
Beta Was this translation helpful? Give feedback.
0 replies
-
Having the same issue with Sanity 3.52.2. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I forgot to answer, but I ended up solving it in a bit of a hacky way: complexContent.ts
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
My company has a repo where Sanity is customized.
Therefore, in the portable text editor I have a dropdown menu for adding normal, h1, h2, goal content:
However, when I try to open the menu I immediately get the error that
TypeError: props.renderDefault is not a function
, referencing the line in the above code excerpt. This has certainly worked at some point (so the content people assure me), but I am not sure with which update it started not working anymore (I just recently joined the team). Did I miss something when upgrading? Even though the content people think it worked in 3.38, when I downgraded to that version of Sanity it did not work either, so I am not sure where the issue was introduced. I checked the change logs but could not find anything, and the documentation also fits to how I did it in my code. I would be happy about any pointers!complexContent.ts (I pasted just the relevant parts):
package.json excerpt:
I also tried it with Sanity 3.48 and Sanity 3.49 and get the same issue.
Beta Was this translation helpful? Give feedback.
All reactions