I'm having trouble creating an image gallery with Vue.js because local images are not loading. I have the src attributes set in the data attribute and can only load images from external sources. For example:
data() {
return {
images: [
"../assets/images/photos/bathroom/bathroom-1.png",
"https://i.natgeofe.com/n/46b07b5e-1264-42e1-ae4b-8a021226e2d0/domestic-cat_thumb_square.jpg",
],
};
},
Despite the rest of my code working to scroll through the gallery, the first image is not loading while the second one does. I suspect it has something to do with how Vue compiles everything, as I am able to display the image statically using a regular img tag by setting the src manually.