I used FullCalendar package to develop a rather simple LWC which includes a single DIV where the package dynamically loads it's elements.
<div id="calendar" lwc:dom="manual" class="fullcalendarjs"></div>
I developed the LWC using a Local Development Server (FullCalendar static resource was uploaded to a sandbox and then pulled into my project).
On the local server all is working perfectly, but when I deployed to the sandbox and tried displaying the LWC - I immediately hit an issue of accessing elements within the static resource (got an undefined value for them).
The loadScript promise resolves in both cases - however on the local server I get an event as a result and in the sandbox there's no event, the resolution is almost empty (not sure what does it mean - I'm not a JS expert).
Anyone ran into a similar issue? Any advice?
****** EDIT 01/09/2020*******
After some additional digging in the browser dev tools - I can clearly see that the resource is being loaded correctly - however - its path is different to the local server.
On the local server this is where my resource is located:
While on my Sandbox - the path is different:
On the local server I'm able to reference the FullCalendar var directly. When I try and do the same in the sandbox - it doesn't work and I get a FullCalendar is not defined error.
How should I address a var located in a different path?