Class constructor _Listener cannot be invoked without 'new'
Sapphire Framework
Creating your own listeners | Sapphire
Similar to what you learned in both Creating Commands and [Creating
Solution:Jump to solution
for those using next.js set your version on something different than es5 (i used es2016)
8 Replies
sapphire ^5.0.5
discordjs ^14.414.1
node v20.8.0
tsc v5.2.2
Can you send your code? @doqe
the tsconfig.json is just a normal nextjs config but modified to fit in with decorators
i found out the error
Solution
for those using next.js set your version on something different than es5 (i used es2016)
Set it to es2022. Es5 is JavaScript of 2013, es2016 is well of 2016. It's super super old
Also integrating sapphire within nextjs is asking for problems sooner or later. Sapphire and discordjs are no designed to run within a full stack framework.