Skip to content

[Vue warn]: Invalid prop: type check failed for prop "myprop". Expected MyType, got Object #9964

Discussion options

You must be logged in to vote

https://vuejs.org/api/utility-types#proptype-t

import type { PropType } from 'vue'

const props = defineProps({ file: {type: Object as PropType<MyType>, required: true} })

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Parilar
Comment options

Answer selected by Parilar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants