Skip to content
Advertisement

Tag: node.js

How can I upgrade to Discord.js V13?

Im using Discord.js V13 and when i try to run the bot i get this error everytime. Main File: The error: The solution here is that i can`t deconstruct the library from itself, and my mistake is that i needed to put only the intents that my bot needs. My solution: Answer You cannot deconstruct the library from itself. Either

countDocuments() is not working in api call

I am trying to get a count of products using api calls but in postman its keep loading without async and await also its not working I try to catch the error and i got this error in postman code to catch error: Answer I think in Mongoose operations you want to either await or provide a callback, but not

Cannot read properties of undefined (reading ‘classList’)

I’m following a tutorial for making BattleShip in javascript and html but i get an error : This is the tutorial: https://youtu.be/U64vIhh0TyM The error happens randomly sometimes, it’s been 5 days since this error occured and I can’t understand how to fix this. I hope that someone can find a solution soon. Answer The issue is that within isTaken the

Advertisement