0๐
โ
You can always use the ternary if inside the :src
Example:
<v-img
:src="product.eyecatch ? product.eyecatch : ''"
:lazy-src="product.eyecatch"
></v-img>
Or use the
v-if
v-else
when declaring the v-img
0๐
If you add a v-if
, you shound not get this error anymore, as the component wonโt get rendered if the product.eyecatch
is null
<v-img
v-if="product.eyecatch"
:src="product.eyecatch"
:lazy-src="product.eyecatch"
></v-img>
Source:stackexchange.com