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
d.js toolkit
d.js toolkit2y ago
• 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.
ghehusbcbrhjrjxnnxnnxnx
whenever i do node . i get this typeerror error
monbrey
monbrey2y ago
show the stack? it should tell you what youre requiring
ghehusbcbrhjrjxnnxnnxnx
require(discord.js).config(); ^ TypeError: require(...).config is not a function
monbrey
monbrey2y ago
Well.... yeah it isnt? Theres no config function in discord.js
ghehusbcbrhjrjxnnxnnxnx
i remove the require(discord.js).config(); code right?
Want results from more Discord servers?
Add your server