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/[email protected]/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/[email protected]/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
acronie2y ago
Can somebody help? I have tried to reinstall deps and nothing is seeming to fix the issue
Favna
Favna2y ago
Update to discordjs 14.10.2 and remove your lockfile then reinstall. Issue has already been fixed.
acronie
acronie2y ago
I did it I'll try again once more
Favna
Favna2y ago
Seeing as the error says 14.9, you didn't do it fully
Want results from more Discord servers?
Add your server