Tag Archives: type check failed for prop “xxx“. Expected String with value “xx“

Vue Error: type check failed for prop “xxx“. Expected String with value “xx“,got Number with value ‘xx‘

Vue error reporting [Vue warn]: Invalid prop: type check failed for prop “name”. Expected String with value “4”, got Number with value 4.

When this error occurs, the reason is that the type relationship between number and string is omitted

It refers to arrays and variables or functions defined by us

The problem is that we click: the default type of name is string type, while we define the numeric type ourselves, so we need to change it

I hope the above can help you