Duolith docs

Errors while checking a page

E0113 Missing required prop

Message <component> needs the prop prop

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

A prop with no default, whose type does not mark it optional with ?, must be passed wherever the component is placed.

How to fix it

Pass it, or give it a default in the component: let { prop = value } = props().

In a terminal

duolith explain E0113

Mentioned in