JsonType is undefined, global object in block content annotations #3686
-
Hello!
I added this type to the schema. but when I want to place it in the annotations of my block Content, I get the following error:
And this is my BlockEditor code:
This example shows me that it is possible (in V2), so my question is, what am I doing wrong here? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
@JanneHelewaut - have you defined the externalLink type in the schema before it is used here? The shorthand Just to confirm this first. |
Beta Was this translation helpful? Give feedback.
-
I created a git repo with a really basic blockeditor that shows the issue really well. |
Beta Was this translation helpful? Give feedback.
-
After a lot of testing, we figured out the issue was in the order of the schemaTypes. When we put the externalLink before the BlockContent in the schemaTypes, it works. |
Beta Was this translation helpful? Give feedback.
-
We just ran into this issue earlier today, surely this isn't intentional behavior? The order of the schema types should not affect inter-referencing between schema types? |
Beta Was this translation helpful? Give feedback.
After a lot of testing, we figured out the issue was in the order of the schemaTypes. When we put the externalLink before the BlockContent in the schemaTypes, it works.