TypeError Cannot read properties of undefined (reading 'CHANNEL_CREATE')

So following the docs, I've set up everything and it should work, but I get the error in the title. I'm using TypeScript, and I've installed the required packages (@sapphire/framework and discord.js) However when I do npm start I get the error.
Solution:
Sapphire isn't compatible with Discord.js v14 just yet, which is why you're getting the error.
Jump to solution
3 Replies
spr1ng
spr1ng2y ago
node_modules\@sapphire\framework\src\lib\types\Events.ts:28
ChannelDelete: Constants.Events.CHANNEL_DELETE,
^
TypeError: Cannot read properties of undefined (reading 'CHANNEL_CREATE')
node_modules\@sapphire\framework\src\lib\types\Events.ts:28
ChannelDelete: Constants.Events.CHANNEL_DELETE,
^
TypeError: Cannot read properties of undefined (reading 'CHANNEL_CREATE')
Solution
Alex
Alex2y ago
Sapphire isn't compatible with Discord.js v14 just yet, which is why you're getting the error.
Alex
Alex2y ago
ping
Want results from more Discord servers?
Add your server