.drawImage function is throwing a “TypeError: Image or Canvas expected”, for canvas
问题 I am trying to add a rank card in my discord bot, and in order to do so I am trying to use canvas but when I use canvas everything works fine until I hit the .drawImage method. Where it gives me an error saying "TypeError: Image or Canvas expected". Although I've already require('canvas') globally, and everything else that has to do with canvas works properly as well. I've tried to require('canvas') inside the function but that doesn't fix the problem either. const canvas = Canvas