Registering Commands Issue
Hey there, I've recently started using sapphire, and I've used it before without running into this issue, but when I run my project (using bun, I've tried npm as well, same issue.) I continuously get the error
and I'm not sure what the issue is because I've followed the docs exactly besides changing the name of the class
8 Replies
Never mind - seems running the TS file directly causes it to mess up, but running the JS file works 👍
Set your tsconfig target to ES2020 or higher. The default is ES3 which is very very old JS (before 2015)
I have mine set as NodeNext
Target too? Pretty sure that's only module and moduleResolution
let me check
I've set my target to both ES2020 and NextNode and I still get the error, the commands still register and work, that error is pretty annoying though, hogging up most of my console
I'm not exactly sure then but it's definitely a config issue somewhere. I've ran bots with TS and Bun before.
Well you figured it out I guess and that's most important
oh I also get
not sure if that's related to the issue I made this thread about but
no idea what that is for but something isnt loading right
maybe try generating a project with @sapphire/cli