vue-portabletext icon indicating copy to clipboard operation
vue-portabletext copied to clipboard

Unknown block type "block", specify a component for it in the `components.types` prop

Open mikehwagz opened this issue 1 year ago • 3 comments

I have a few link annotations in a field and attempting to render on the page but seeing this strange warning. Typically I'd expect this for unknown types, not block. Any idea what is going on here?

mikehwagz avatar Feb 09 '24 21:02 mikehwagz

@rdunk sounds like stega snuck in here 🤔

stipsan avatar Apr 05 '24 09:04 stipsan

As in stega got into the block type str?

EDIT: Notifications given more context, assuming this is related.

@mikehwagz Can you give us any more detail here?

rdunk avatar Apr 05 '24 10:04 rdunk

As in stega got into the block type str? @rdunk

Yes, it should be skipped by default. But custom filter options could re-enable it. That's the scenario where I've seen this error myself. We might want to update @portabletext libs to always strip out stega from areas like type or anything else that would break render logic in similar ways as to here

stipsan avatar Apr 07 '24 20:04 stipsan