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 toolkit12mo 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.
someone
someone12mo ago
whenever i do node . i get this typeerror error
monbrey
monbrey12mo ago
show the stack? it should tell you what youre requiring
someone
someone12mo ago
require(discord.js).config(); ^ TypeError: require(...).config is not a function
monbrey
monbrey12mo ago
Well.... yeah it isnt? Theres no config function in discord.js
someone
someone12mo ago
i remove the require(discord.js).config(); code right?