Static Resource not loading in LWC
I have static resource which is loading successfully in Aura Component and Visualforce page but not in the LWC
Folder Structure Staticresource>Cal>fullcalendar.min.js
cal -> folder name fullcalendar.min.js -> javascript file
LWC CODE
import { LightningElement } from 'lwc';
import { loadScript, loadStyle } from 'lightning/platformResourceLoader';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import cal from '@salesforce/resourceUrl/Cal';
import Message from '@salesforce/schema/ApexTestResult.Message';
export default class FullCalender extends LightningElement {
fullCalenderInitialized = false;
renderedCallback(){
if(this.fullCalenderInitialized){
return;
}
this.fullCalenderInitialized = true
Promise.all([
loadScript(this, cal + '/fullcalendar.min.js')
])
.then(() => {
console.log('Success');
})
.catch(error => {
console.error({
Message: 'Error occured on FullCalendarJS',
error
});
});
}
}