You need to sign in to do that
Don't have an account?

Static Resource is not loading.
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?
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`
}
]
}
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`
}
]
}


The static resource images do not load in the local development.