# Vue: [Vue warn]: Invalid prop: type check failed for prop "count". Expected Number with value 5, got String with value "5"

**Code:** `[Vue warn]: Invalid prop: type check failed` · **Category:** Vue · **Seen on:** Vue

A prop received a value of the wrong type.

## Meaning

Pass the right type: use `:count="5"` (bound) instead of `count="5"` (string). Update the prop definition or convert values. For several types use `[String, Number]`. Validators and `required` are separate warnings.

## Common causes

- Static attribute passes a string (`count="5"`)
- API data type differs
- Prop declared with wrong type
- null/undefined for a typed prop
- Boolean casting with empty attr

## Quick fix

1. `<Cmp :count="5" />` (v-bind)
2. Allow multiple types: `type: [Number, String]`
3. Convert data before passing

## Detailed fix by platform

### Vue

1. `defineProps<{ count: number }>()`

## How to diagnose

1. **Binding** — : or static?
2. **Type** — Declared?
3. **Data** — Converted?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/vue/vue-warn-invalid-prop-type-check-failed)
