Hey guys i'm trying to load a image on top of a canvas with the canvas package like the following
const blankCanvas = canvas.createCanvas(52,52).getContext("2d");
for(const trait in metaData) {
if (trait === 'token' || metaData[trait] === 'none') {
continue;
}
const img = await canvas.loadImage(`${trait}/${metaData[trait]}.png`)
This img promise never gets resolved and gets stuck. When i do
const img = canvas.loadImage(`${trait}/${metaData[trait]}.png`)
console.log(img);
This shows me the following line which is why i think it is actually complete:
Promise { [Image:51x51 background/hell.png complete] }
Why is the await not resolving the promising and is it getting stuck there. Anyone knows?