The punycode module is deprecated.
Even if i don't use punycode in my code i get this error:
18 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by staffNeither discord.js does. Use
npm ls punycode
to find it1s
[email protected] C:\Users\Silag\OneDrive\Desktop\Bot\Discord-TempVoice-Bot-master
`-- [email protected]
but in src there is no punycode
The trace says whatwg-url is using punycode
const client = new Client({
intents: [
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildEmojisAndStickers,
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildVoiceStates]
})
const { REST, RequestData } = require('@discordjs/rest');
const { Routes, ButtonStyle } = require('discord-api-types/v10');
neither that i have
but when i do node my_script.js i get that error
well, as syalo said, its coming from whatwg-url
So this is not a djs issue
but i don't use it
in my code
so...
is a way to patch it ?
if you dont use it, remove
see here ? i don't require it
so like
yeah but you have the module installed
so remove it
npm uninstall?
yes
thanks
that is what it sould do ?
yea i had the same problem just upgrad to latest d.js version
this has nothing to do with djs though
downgrade to 14.11.0
and u will see it gets installed
djs does not use punycode
nor is this related to any of their issues as the issue comes from another package