Tag Archives: Vue instruction

[Vue warn]: Invalid prop: type check failed for prop [How to Solve]

The following situation occurs when developing projects today

[Vue warn]: invalid attribute: type check of attribute ‘list’ failed. Expected array, got object

Error reason:
subcomponent props – > List requires that the received data type is array, but the actual received data type is undefined

therefore, check the value passed by the parent component to ensure that the value passed is the data type expected by the child component.