Vuetify: 1.3.1
Vue: 2.5.17
Browsers: Chrome 69.0.3497.100
OS: Windows 10
When I try to load an image with v-img like this:
<v-img src="./assets/logo.jpg" ></v-img>
The result is ./assets/logo.jpg not found
but using
<img src="./assets/logo.jpg">
works correctly.
Seems that v-img can't use local resources on Vue src.
Using VUE CLI 3.
Found the logo.jpg
Don't find anything
https://github.com/vuetifyjs/vuetify
Console result:
vuetify.js?ce5b:21920
[Vuetify] Image load failed
src: ./assets/logo.jpg
found in
VImg
VCard
VNavigationDrawer
VApp
Layout
at src/Appvue
vue-loader adds a require()
call to <img>
tags. To make this work with v-img:
<v-img :src="require('./assets/logo.jpg')" />
, or'v-img': 'src'
to the vue-loader config, orvuetify-loader
Thanks KaelWD!
This should be added to the documentation.
Most helpful comment
This should be added to the documentation.