Skip to main content
Roman Regmi (CQ Nepal) 님이 #Lightning Experience에 질문했습니다
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개
  1. 2022년 2월 4일 오전 8:31
    The static resource images do not load in the local development.
0/9000