TypeError: require(...).config is not a function
this error comes up when I do npm run test. I searched all over my files and codes and I don't get why I am getting this error.
6 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.whenever i do node .
i get this typeerror error
show the stack? it should tell you what youre requiring
require(
discord.js
).config();
^
TypeError: require(...).config is not a functionWell.... yeah it isnt?
Theres no config function in discord.js
i remove the require(discord.js).config(); code right?