Class constructor _Listener cannot be invoked without 'new'
Sapphire Framework
Similar to what you learned in both Creating Commands and [Creating
Solution
for those using next.js set your version on something different than es5 (i used es2016)
Error when loading 'D:\Gits\dqm-neo\src\listeners\ready.ts': TypeError: Class constructor _Listener cannot be invoked without 'new'
at new ReadyListener (D:\Gits\dqm-neo\src\listeners\ready.ts:23:42)
at _ListenerStore.construct (D:\Gits\dqm-neo\node_modules\@sapphire\pieces\src\lib\structures\Store.ts:337:2)
at _ListenerStore.loadPath (D:\Gits\dqm-neo\node_modules\@sapphire\pieces\src\lib\structures\Store.ts:366:5)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _ListenerStore.loadAll (D:\Gits\dqm-neo\node_modules\@sapphire\pieces\src\lib\structures\Store.ts:257:17)
at async Promise.all (index 3)
at async _SapphireClient.login (D:\Gits\dqm-neo\node_modules\@sapphire\framework\src\lib\SapphireClient.ts:352:3)