vue.js - vue: Wrong type check for prop -


my component has in data section:

photos: ['images/1.jpg','images/2.jpg'] 

in template (pug) :

 ...  v-carousel      v-carousel-item(v-for='(item,i) in photos',:key='i',        :src='item') 

it works ok got 2 warnings:

[vue warn]: invalid prop: type check failed prop "src". expected string, got number. found in --->

if

 :src='item'  

change

 :src='item.tostring()'  

there no warnings.

is vue or vuetify or error?


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -