Vue typescript: accessing props in beforeCreate

Why do I get this error(see the attached screenshot) from Vetur (I cannot also build the app) when I try to access propData properties? Any help will be appreciated.

Using … (this.$options.propsData as { category: ServiceCategory })?.category._id for now