Skip to content

<DefaultListItem> was created with unknown prop 'portableText' #10

@kamerat

Description

@kamerat

Warning comes when using a bullet list.

The Issue is that your component defaultListItem does not have the prop portableText present:

This will cause svelte to trigger a console warning if in development mode.

There is no trivial way to disable this locally as of writing this. There is an ongoing discussion in the svelte repo where people is wishing for an option to disable this.

Even if we were able to disable this warning, I think it is still an issue that the item gets these props when there's nothing the component does with them. I think the best solution here would be to not add the props in the first place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions