Vuetify issue – why doesn't the v-img component display anything despite the image being passed in from a valid source?

I wrote this code earlier in the summer before v-card-media was depreciated in favour of v-img. As far as I can see, I’m using v-img correctly and passing in my source through the designated src prop.

Another question mentioned a similar problem and someone suggested that v-img my not work with outdated browsers: Vuetify v-img component not loading images

I have the latest version of firefox and chrome and v-img will not display the linked image in either case. I know the information is being passed through, because all of the other data is displaying just fine. I wonder if it may be an issue with the security of the link or perhaps some configuration issue to do with links I’ve overlooked. Someone mentioned somewhere (I forget where now) that vue has issues loading images from relative links for custom components, but the links I’m passing in are using http. Furthermore, the images I’m passing in display fine in the avatar tile of a list component, so I believe the issue is specifically related to v-img.

All the same, I’m a clueless to what’s going on. I’ve pasted the relative code below. If anyone has some insight into this that would be highly appreciated.

    <template>
<div id="eventCard">
      <v-container fluid grid-list-xl pb-0 grid-list-lg grid-list-md grid-list-xs>
        <v-layout row wrap>
          <v-flex
            v-for="item in shows"

            class="xs12 sm6 md4 xl4"
          >
           <v-card flat>
              <v-img
                class="secondaryFont--text"
                height="300"
                src="item.avatar"
                alt=""
              >
                <v-container fill-height fluid>
                <v-layout fill-height max no-margin>
                  <v-flex xs12 align-end flexbox max no-padding>
                        <v-container class="banner max">
                          <v-layout xs12 row>
                              <v-flex xs12 md9 v-if="item.title && item.acts" class="title">
                                  <span class="clip-text">
                                    {{item.title}}
                                    <span>(</span>
                                    <span v-if="item.acts" v-for="(act, index) in item.acts">
                                        <span>{{act.name}}</span><span v-if="index+1 < item.acts.length">, </span>
                                    </span>
                                    <span>)</span>
                                  </span>
                              </v-flex>
                              <v-flex hidden-sm-and-down xs3 text-xs-right>
                                  <span v-if="item.price" v-html="item.price" class='headline clip-text'></span>
                              </v-flex>
                          </v-layout>
                      </v-container>
                  </v-flex>
                </v-layout>
                </v-container>
              </v-img>
              <v-card-text class='primaryFont--text'>
                <div>
                  <span v-if="item.genre" v-html="item.genre"></span>
                      <span v-if="item.doors"> — Doors @ {{item.doors}}</span>
                      <span v-if="item.age"> ({{item.age}}+)</span>
                      <span v-if="item.location"> — {{item.location}}</span>
                  <br>
                  <span v-if="item.date" v-html="item.date"></span>
                </div>
              </v-card-text>
            </v-card>
        </v-flex>
      </v-layout>
    </v-container>

This is the css code for the above component:

.md-active {
    background-color: red;
}

.center {
    display: flex;
    justify-content: center;
    text-transform: capitalize;
}

.banner {
    margin-top: 0px;
    background-color: rgba(0, 0, 0, .6);
}

.clip-text {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: flow-root;
}

.max {
    max-width: 100%;
}
.card__media__content {
    max-width: 100%;
}

.card {
    cursor: pointer;
}

.no-padding {
    padding: 0px !important;
}

.no-margin {
    margin: 0px !important;
}

183 thoughts on “Vuetify issue – why doesn't the v-img component display anything despite the image being passed in from a valid source?”

  1. whoah this blog is wonderful i like reading your articles.
    Stay up the good work! You realize, a lot of people
    are searching around for this info, you can aid them greatly.

    Reply
  2. Definitely believe that which you stated. Your favorite justification appeared to be on the internet the simplest thing
    to be aware of. I say to you, I certainly get annoyed while people consider worries that they just do not know
    about. You managed to hit the nail upon the top and defined out the whole thing without having side-effects , people can take
    a signal. Will probably be back to get more. Thanks http://antiibioticsland.com/Erythromycin.htm

    Reply
  3. Pingback: keto diet epilepsy
  4. I just couldn’t depart your site before suggesting that I really loved the usual information an individual provide in your guests? Is going to be back often in order to check out new posts.

    Reply
  5. Thanks a bunch for sharing this with all people you actually understand what you’re talking approximately!
    Bookmarked. Kindly additionally visit my site =). We will have a hyperlink exchange arrangement among us

    Reply
  6. I just couldn’t go away your site before suggesting that I really loved the standard information an individual provide for your visitors? Is going to be again ceaselessly in order to inspect new posts.

    Reply
  7. Hello! I know this is somewhat off topic but I was wondering which blog
    platform are you using for this site? I’m getting sick and tired of WordPress because I’ve
    had problems with hackers and I’m looking
    at alternatives for another platform. I would be great if you could point me in the direction of a good platform.

    Reply
  8. I’m amazed, I must say. Seldom do I encounter a blog that’s both equally
    educative and engaging, and without a doubt, you’ve hit the nail on the head.
    The problem is something that not enough men and women are speaking intelligently about.
    Now i’m very happy that I stumbled across this during my search
    for something concerning this.

    Reply
  9. With havin so much content and articles do you ever run into
    any problems of plagorism or copyright infringement?
    My website has a lot of completely unique content I’ve either authored myself or outsourced but it looks like a lot
    of it is popping it up all over the web without my authorization. Do you know any methods to help prevent content from being stolen? I’d certainly appreciate it.

    Reply
  10. Have you ever considered creating an ebook or
    guest authoring on other blogs? I have a blog centered on the same ideas
    you discuss and would love to have you share some stories/information. I know my visitors would enjoy your work.
    If you are even remotely interested, feel free
    to shoot me an e-mail.

    Reply
  11. An impressive share! I’ve just forwarded this onto a co-worker who had been doing a
    little research on this. And he in fact bought me breakfast
    because I discovered it for him… lol. So let me reword this….

    Thanks for the meal!! But yeah, thanks for spending
    some time to talk about this matter here on your internet site.
    quest bars http://bit.ly/3C2tkMR quest bars

    Reply
  12. Hi there, I found your site by the use of Google
    even as searching for a similar topic, your website came up, it looks
    good. I have bookmarked it in my google bookmarks.

    Hi there, just changed into alert to your blog
    thru Google, and located that it is truly informative.
    I’m gonna watch out for brussels. I will appreciate in case you proceed this
    in future. Numerous people will be benefited from your writing.
    Cheers! scoliosis surgery https://0401mm.tumblr.com/ scoliosis surgery

    Reply
  13. Howdy great website! Does running a blog similar to this require a large amount of work?
    I’ve absolutely no understanding of computer programming but I had been hoping to start my own blog soon. Anyways, if you have any ideas or
    techniques for new blog owners please share. I know this is off subject but I
    just wanted to ask. Cheers! ps4 https://bit.ly/3nkdKIi ps4

    Reply

Leave a Comment