Invalid prop: type check failed for prop "items". Expected Array, got String

ramees

I have a dropdown in vue js.

<v-flex> <v-select label="Select Province" v-bind:items="listProvince" outline v-model="province" persistent-hint @change="loadCity()"></v-select> 
</v-flex>

and in the 'listProvince' I am getting data and displayed in the dropdown but in console I am getting this error Invalid prop: type check failed for prop "items". Expected Array, got String.

This is the vue js code:

    export default {
  props: ["updateView","newBooking"],

  data() {
    return {
      selected: [0],
      shipper: "",
      address: "",
      barangay: "",
      city: "",
      province: "",
      phone: "",
      listProvince:"",
      selectedCity:"",
      bookingObject: {},
      isNewBk: false,
    };
  }
}

Please help me thanks in advance

ramees

I got the answer

Here i declared 'province' as string and 'listProvince' as array

Thanks

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

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

Invalid prop: type check failed for prop "cellClass". Expected String with value "[object Object]", got Object

Invalid prop: type check failed for prop "value". Expected Boolean, got String with value "0"

[Vue warn]: Invalid prop: type check failed for prop "productCartData". Expected Object, got String with value "[object Object]"

Vue.js - Invalid prop: type check failed for prop "src". Expected String, Object, got Promise

Invalid prop: type check failed for prop "data". Expected Array, got Object

vue warning: Invalid prop: type check failed for prop "modalState". Expected Boolean, got Function

VueJs - Invalid prop: type check failed for prop "page". Expected DocumentPageDto, got Object

Vuejs error, Invalid prop: type check failed for prop. Expected Date, got Number with value

How to pass ref as prop: [Vue warn]: Invalid prop: type check failed for prop "containerRef". Expected Object, got HTMLDivElement?

Warning: Failed prop type: Invalid prop `items[0]` of type `string` supplied to `ImageGallery`, expected `object`

vue.js vuetify test-utils warning : Vue warn]: Invalid prop: type check failed for prop "src". Expected String, got Object

Vue 3 Typescript props: [Vue warn]: Invalid prop: type check failed for prop "organisation". Expected Null | Boolean, got Object

Invalid prop type from router params, expected Number got String

Warning: Failed propType: Invalid prop of type `array` expected `object` with React

Failed prop type: Invalid prop `match.params` of type `object` supplied to `Page`, expected `string`

Warning: Failed prop type: Invalid prop `value` of type `number` supplied to `TextInput`, expected `string`

Warning: Failed prop type: Invalid prop `defaultValue` of type `string` supplied to `AutoCompleteSearch`, expected `function`

Failed prop type: Invalid prop `children` of type `string` supplied to `DetailField`, expected `object`

GraphQL: Warning: Failed prop type: Invalid prop `query` of type `object` supplied to `StaticQuery`, expected `string`

Failed prop type: Invalid prop `responsive` of type `string` supplied to `Image`, expected `boolean`

Failed prop type: Invalid prop `answer` of type `string` supplied to `AnswerItem`, expected `object`

Warning: Failed prop type: Invalid prop `data` of type `object` supplied to `Carousel`, expected `array`

Laravel + Vuetify error: Error in render: this.items.slice is not a function" & Invalid prop: Expected Array, got Object

laravel vue pagination return invalid prop type check failed for prop

Failed prop type: Invalid prop `children` of type `array` supplied to `GlobalState`

Why do I get this "Invalid prop: expected Array, got String" error?

Can't fetch data to mui datagrid:Failed prop type: Invalid prop `rows` of type `function` supplied to `ForwardRef(DataGrid)`, expected an array

Failed prop type: Invalid prop `to` supplied to `Redirect`