Skip to main content
I am trying to load images that I have uploaded as a zip file on my org Static Resources. However, the images do not load. Why is this happening?Static Resource is not loading.

My Code

import { LightningElement } from 'lwc';

import CAROUSEL_IMAGES from '@salesforce/resourceUrl/carousel';

export default class CustomCarouselWrapper extends LightningElement {

slides = [

{

image : `${CAROUSEL_IMAGES}/carousel/Naruto.jpeg`

},

{

image : `${CAROUSEL_IMAGES}/carousel/Luffy.jpeg`

},

{

image : `${CAROUSEL_IMAGES}/carousel/DragonBallZ.jpg`

}

]

}
1 answer
  1. Feb 4, 2022, 8:31 AM
    The static resource images do not load in the local development.