Class constructor _Listener cannot be invoked without 'new'
i just got the listener from the docs and now it's sending this warning
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)
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)
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.