function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Roman RegmiRoman Regmi 

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?User-added image
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`
}
]

}
Best Answer chosen by Roman Regmi
Roman RegmiRoman Regmi
The static resource images do not load in the local development.