I have a function like this:
private loadSlides(): Promise<any> {
return new Promise(function (resolve, reject) {
const slideViews = []
slideViews.push(builder.load(__dirname + '/app/dashboard/customer-product-slide.xml'));
resolve(slideViews);
});
}
builder.load() returns undefined. Why is that so?
Note: I verified that the file actually exists on device explorer.
Thanks!