T130errorwarning

Invalid prop default

A prop's default value or default factory does not fit the prop's type.

It is an error when the default is invalid or a factory returns the wrong type. It is a warning when a default written as text cannot be parsed as the prop's type.

Correct the default so it has the prop's type.

$ piko explain T130

Build output ends each diagnostic with a link to this page, and editors using the Piko language server link the code under the squiggle. Look for CodePropDefaultError in Piko's source to see where it is reported.