TypeError: isJSONEncodable is not a function

Returns this while registering applications commands and this after a while
/home/mooy/projects/13-bot/node_modules/.pnpm/discord.js@14.9.0/node_modules/discord.js/src/structures/MessagePayload.js:202
isJSONEncodable(embed) ? embed.toJSON() : this.target.client.options.jsonTransformer(embed),
^

TypeError: isJSONEncodable is not a function
/home/mooy/projects/13-bot/node_modules/.pnpm/discord.js@14.9.0/node_modules/discord.js/src/structures/MessagePayload.js:202
isJSONEncodable(embed) ? embed.toJSON() : this.target.client.options.jsonTransformer(embed),
^

TypeError: isJSONEncodable is not a function
don't know where this is coming from
4 Replies
acronie
acronie14mo ago
Can somebody help? I have tried to reinstall deps and nothing is seeming to fix the issue
Favna
Favna14mo ago
Update to discordjs 14.10.2 and remove your lockfile then reinstall. Issue has already been fixed.
acronie
acronie14mo ago
I did it I'll try again once more
Favna
Favna14mo ago
Seeing as the error says 14.9, you didn't do it fully