Error [EMPTY_MODULE]: A compatible class export was not found.
Not sure what's causing this error
Here is my code and file tree
9 Replies
Tsconfig?
Oh the problem is that you're exporting 2 classes I think. And the class doesn't extend the Sapphire Command class. You're in #sapphire-support so I assume you use Sapphire.
yes I am using sapphire, but I don't want this class to be a command, it's just a "utility" class used by the command class
Then don't put it in the commands folder
it isn't, it's in the utils folder
Oh your file tree seemed to suggest otherwise...
audio-player.ts contains the class above
so no idea 😓 ?
oh wait
i might know what's wrong
one sec
sroted
sorted
The problem was that it was in the commands folder, but in dict not src
Thank you!
Glad you figured it out. Sorry for the late response, was driving