Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mikehwagz opened this issue Feb 9, 2024 · 3 comments
Assignees

Comments

@mikehwagz
Copy link

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 mikehwagz changed the title [@portabletext/vue] Unknown block type "block", specify a component for it in the components.types prop Unknown block type "block", specify a component for it in the components.types prop Feb 9, 2024
@rdunk rdunk self-assigned this Feb 10, 2024
@stipsan
Copy link
Member

stipsan commented Apr 5, 2024

@rdunk sounds like stega snuck in here 🤔

@rdunk
Copy link
Member

rdunk commented Apr 5, 2024

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?

@stipsan
Copy link
Member

stipsan commented Apr 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants